googleauth 1.12.1 → 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: fa685deaed5ba04ae1b5740296e04ca9e8d9d0d2399e73f11e85f58e8dc51353
4
- data.tar.gz: ed5539ac8585cff94bba4589b5c8c703e063028b00af39cf10620c272ab8a199
3
+ metadata.gz: 34f510693238aa2d0ac63fb3d7a91f8685d34dc9962e33952220b6ee8845beef
4
+ data.tar.gz: 97d0eb5127ac1c609740d8b422b2002bd8f983043ff1a11cc09130c3c650d30f
5
5
  SHA512:
6
- metadata.gz: f2298930d07d9d6a5af75943f97bdebf69b36de8ad5bf15961cfa59d6b02466154016e91233be62e62f2abf461f8e6e7ec273852904f4d1121be36d9416c3b74
7
- data.tar.gz: 8722b0ae408e29f54e299744c875f49496322a27a065aa69ca1fd2d31f3d8f880cd2f6dcb8536551241ea91d2aa3aeb031c45b7d3768c74f035984437c918c82
6
+ metadata.gz: 821238707fdf60880359514bc2385a273b4d16fe6bc6bd8ad804fcd36d2255667ad4a4dd39e7fabbd5f422367208a7fc7b74949943cda444481a8da3edfd16e2
7
+ data.tar.gz: 792636b6a808d5c93dc7a3883a7c7d1e62cbb3d8b33b76e4da025cdbdac8cbd915c1cd4c5e1e698a58173d6fb2840e7623bd8c2a5673edc69113b662486029c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ### 1.12.1 (2024-12-17)
4
10
 
5
11
  #### Bug Fixes
@@ -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.1".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.1
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-18 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