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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/googleauth/compute_engine.rb +13 -0
- data/lib/googleauth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34f510693238aa2d0ac63fb3d7a91f8685d34dc9962e33952220b6ee8845beef
|
4
|
+
data.tar.gz: 97d0eb5127ac1c609740d8b422b2002bd8f983043ff1a11cc09130c3c650d30f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = {}
|
data/lib/googleauth/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|