googleauth 1.12.0 → 1.12.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f0abc7ed9fc9deefc0b45abbd3b66d6b4a5aa859774f652e2b8c8c8ff12ff77
4
- data.tar.gz: c8a2ab192e92bf610f96044c04d5e02ad138dd99f2a1311d14d4e029639b210e
3
+ metadata.gz: 34f510693238aa2d0ac63fb3d7a91f8685d34dc9962e33952220b6ee8845beef
4
+ data.tar.gz: 97d0eb5127ac1c609740d8b422b2002bd8f983043ff1a11cc09130c3c650d30f
5
5
  SHA512:
6
- metadata.gz: 17bde72c9466591719a1f069875242a6abbfa9533fef63d5c9d696c16227d68ac2fd053d63f9d46588cb23c38841eb04a27953a38bbd63c2bc8f8f02709f684c
7
- data.tar.gz: 4e4c81aad747f3beb7fd610e836ef871e5fa03a2ab7e9b6c2b223cd48e5e891976e736ad90539a493de8ce2805c692667bf3f11162ecb8646ba7a59be82eface
6
+ metadata.gz: 821238707fdf60880359514bc2385a273b4d16fe6bc6bd8ad804fcd36d2255667ad4a4dd39e7fabbd5f422367208a7fc7b74949943cda444481a8da3edfd16e2
7
+ data.tar.gz: 792636b6a808d5c93dc7a3883a7c7d1e62cbb3d8b33b76e4da025cdbdac8cbd915c1cd4c5e1e698a58173d6fb2840e7623bd8c2a5673edc69113b662486029c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 1.12.2 (2024-12-19)
4
+
5
+ #### Bug Fixes
6
+
7
+ * GCECredentials lazily fetches from the metadata server to ensure a universe domain is known ([#509](https://github.com/googleapis/google-auth-library-ruby/issues/509))
8
+
9
+ ### 1.12.1 (2024-12-17)
10
+
11
+ #### Bug Fixes
12
+
13
+ * Restored previous behavior where the apply! method returns the auth header ([#506](https://github.com/googleapis/google-auth-library-ruby/issues/506))
14
+
3
15
  ### 1.12.0 (2024-12-05)
4
16
 
5
17
  #### Features
@@ -37,6 +37,8 @@ module Google
37
37
  hash = Digest::SHA256.hexdigest token
38
38
  Google::Logging::Message.from message: "Sending auth token. (sha256:#{hash})"
39
39
  end
40
+
41
+ a_hash[AUTH_METADATA_KEY]
40
42
  end
41
43
 
42
44
  # Returns a clone of a_hash updated with the authentication token
@@ -93,6 +93,19 @@ module Google
93
93
  super options
94
94
  end
95
95
 
96
+ # @private
97
+ # Overrides universe_domain getter to fetch lazily if it hasn't been
98
+ # fetched yet. This is necessary specifically for Compute Engine because
99
+ # the universe comes from the metadata service, and isn't known
100
+ # immediately on credential construction. All other credential types read
101
+ # the universe from their json key or other immediate input.
102
+ def universe_domain
103
+ value = super
104
+ return value unless value.nil?
105
+ fetch_access_token!
106
+ super
107
+ end
108
+
96
109
  # Overrides the super class method to change how access tokens are
97
110
  # fetched.
98
111
  def fetch_access_token _options = {}
@@ -16,6 +16,6 @@ module Google
16
16
  # Module Auth provides classes that provide Google-specific authorization
17
17
  # used to access Google APIs.
18
18
  module Auth
19
- VERSION = "1.12.0".freeze
19
+ VERSION = "1.12.2".freeze
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googleauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Emiola
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-05 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday