googleauth 1.16.1 → 1.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 311cfe855cb7bcac5a60c62eb701be4bfeb2faf7b0c98109afce80ce349ae570
4
- data.tar.gz: 452413ded2279ce73c4e7ed4cd17393f3fa2915d8a7a05515cc7ac3145f930b3
3
+ metadata.gz: 68a9a896f10ad5681d196a55d510216535bbe80709f7d28e4ff2acbd3a6ed33d
4
+ data.tar.gz: 7000d55fa0183165332069eaadf3a7e01019e5886c0bb7f49e542d34063552a3
5
5
  SHA512:
6
- metadata.gz: ea7f50f6938a83785e7fc90613c7b1b51a7b394f28924b4b6f44975b20b9f127dc785a718bf8129c0e5e7fbc19b3765c7d0e25234c5724fb298cdc2c0e70c649
7
- data.tar.gz: a3d7a37736db58aca6284d0487772cb08a4b16768a57ceb33296c3cb566073fac8a40f97e502eb916fbd0336ad6e3ff5a20a3888003c84ced05a89250ff22cdd
6
+ metadata.gz: 1168e7be27c6a261b1794c4fcc88bf8b7eb019eefab0cbc2007ffee416a954c74d44005d08621d7fac6f545235645d20f1604655797c7639dfaf94800a86cf32
7
+ data.tar.gz: 29eb9a732eae0b6146790c41c62e77548ce60048e0f53ad1cf9760333d99a69c5e8297ee178151da6825d4fa8d8365d5c84bdb8d422b6489d1ea179cd0fe254d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### 1.16.2 (2026-02-26)
4
+
5
+ #### Bug Fixes
6
+
7
+ * initialize the JWT credentials without JSON roundtrip ([#564](https://github.com/googleapis/google-auth-library-ruby/issues/564))
8
+ * return response body from revoke! for logging pipeline ([#562](https://github.com/googleapis/google-auth-library-ruby/issues/562))
9
+
3
10
  ### 1.16.1 (2026-01-15)
4
11
 
5
12
  #### Bug Fixes
@@ -188,15 +188,15 @@ module Google
188
188
 
189
189
  def apply_self_signed_jwt! a_hash
190
190
  # Use the ServiceAccountJwtHeaderCredentials using the same cred values
191
- cred_json = {
192
- private_key: @signing_key.to_s,
193
- client_email: @issuer,
194
- project_id: @project_id,
195
- quota_project_id: @quota_project_id
196
- }
197
- key_io = StringIO.new MultiJson.dump(cred_json)
198
- alt = ServiceAccountJwtHeaderCredentials.make_creds json_key_io: key_io, scope: scope
199
- alt.logger = logger
191
+ alt = ServiceAccountJwtHeaderCredentials.new(
192
+ private_key: @signing_key.to_s,
193
+ issuer: @issuer,
194
+ project_id: @project_id,
195
+ quota_project_id: @quota_project_id,
196
+ universe_domain: universe_domain,
197
+ scope: scope,
198
+ logger: logger
199
+ )
200
200
  alt.apply! a_hash
201
201
  end
202
202
 
@@ -210,10 +210,12 @@ module Signet
210
210
  digest = Digest::SHA256.hexdigest response_hash["id_token"]
211
211
  response_hash["id_token"] = "(sha256:#{digest})"
212
212
  end
213
- Google::Logging::Message.from(
214
- message: "Received auth token response: #{response_hash}",
215
- "credentialsId" => object_id
216
- )
213
+ logger&.debug do
214
+ Google::Logging::Message.from(
215
+ message: "Received auth token response: #{response_hash}",
216
+ "credentialsId" => object_id
217
+ )
218
+ end
217
219
  end
218
220
 
219
221
  def log_auth_error err
@@ -146,6 +146,8 @@ module Google
146
146
  principal: principal
147
147
  )
148
148
  end
149
+
150
+ resp.body
149
151
  end
150
152
  end
151
153
 
@@ -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.16.1".freeze
19
+ VERSION = "1.16.2".freeze
20
20
  end
21
21
  end
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.16.1
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC