googleauth 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/googleauth/id_tokens/key_sources.rb +1 -1
- data/lib/googleauth/id_tokens/verifier.rb +3 -3
- data/lib/googleauth/impersonated_service_account.rb +3 -3
- 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: bc45e207ab32f63ca0badeb96e1706bc80d38931ff0b69caa0a9a111163aa340
|
|
4
|
+
data.tar.gz: 8de82f27d3a8df7a71d0d11ebae8e814a60a3fc963f26825e1c4d420c910dc44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3d50e8368efa58acb323b0fde998d3006a00ca4f044f72f5cb04f2313c3340a7f7577710b3b3a034f9d58699583952bdb60e9eb4d5ecbef3319f01d6e4bf713
|
|
7
|
+
data.tar.gz: ebb4d26b60a9f6d2744cd184dce52c13551773d706319bb53c6566001b39312d87f6c7c98f0ee5b15bda856447a2516f8f2336e6eb7437db8898776e1ac6dc9d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 1.17.2 (2026-07-23)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* return auth header from source_credentials in ImpersonatedServiceAccountCredentials ([#586](https://github.com/googleapis/google-auth-library-ruby/issues/586))
|
|
8
|
+
|
|
3
9
|
### 1.17.1 (2026-06-08)
|
|
4
10
|
|
|
5
11
|
#### Bug Fixes
|
data/README.md
CHANGED
|
@@ -265,7 +265,7 @@ Custom storage implementations can also be used. See
|
|
|
265
265
|
|
|
266
266
|
## Supported Ruby Versions
|
|
267
267
|
|
|
268
|
-
This library is supported on Ruby 3.
|
|
268
|
+
This library is supported on Ruby 3.2+.
|
|
269
269
|
|
|
270
270
|
Google provides official support for Ruby versions that are actively supported
|
|
271
271
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -135,13 +135,13 @@ module Google
|
|
|
135
135
|
rsa_key.public_key
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# @private
|
|
139
138
|
CURVE_NAME_MAP = {
|
|
140
139
|
"P-256" => "prime256v1",
|
|
141
140
|
"P-384" => "secp384r1",
|
|
142
141
|
"P-521" => "secp521r1",
|
|
143
142
|
"secp256k1" => "secp256k1"
|
|
144
143
|
}.freeze
|
|
144
|
+
private_constant :CURVE_NAME_MAP
|
|
145
145
|
|
|
146
146
|
def extract_ec_key jwk
|
|
147
147
|
begin
|
|
@@ -109,13 +109,13 @@ module Google
|
|
|
109
109
|
payload["azp"] ||= payload["cid"] if payload.key? "cid"
|
|
110
110
|
|
|
111
111
|
# Payload content validation
|
|
112
|
-
if aud &&
|
|
112
|
+
if aud && !Array(aud).intersect?(Array(payload["aud"]))
|
|
113
113
|
raise AudienceMismatchError, "Token aud mismatch: #{payload['aud']}"
|
|
114
114
|
end
|
|
115
|
-
if azp &&
|
|
115
|
+
if azp && !Array(azp).intersect?(Array(payload["azp"]))
|
|
116
116
|
raise AuthorizedPartyMismatchError, "Token azp mismatch: #{payload['azp']}"
|
|
117
117
|
end
|
|
118
|
-
if iss &&
|
|
118
|
+
if iss && !Array(iss).intersect?(Array(payload["iss"]))
|
|
119
119
|
raise IssuerMismatchError, "Token iss mismatch: #{payload['iss']}"
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -297,9 +297,9 @@ module Google
|
|
|
297
297
|
# @private
|
|
298
298
|
# @return [Hash] The authorization header with the source credentials' token
|
|
299
299
|
def prepare_auth_header
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
# updater_proc returns a new hash containing authorization headers
|
|
301
|
+
# rather than mutating the passed hash in place.
|
|
302
|
+
@source_credentials.updater_proc.call({})
|
|
303
303
|
end
|
|
304
304
|
|
|
305
305
|
# Makes the HTTP request to the impersonation endpoint.
|
data/lib/googleauth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: googleauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.17.
|
|
4
|
+
version: 1.17.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
198
198
|
requirements:
|
|
199
199
|
- - ">="
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: '3.
|
|
201
|
+
version: '3.2'
|
|
202
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
requirements:
|
|
204
204
|
- - ">="
|