googleauth 1.17.7 → 1.17.8
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4438b5a4afacb0eb2223370a7a193fb7185ff0c7a26a4e36faf82e8946448fb
|
|
4
|
+
data.tar.gz: 35cb94da761a317c43ddb3554ee77aedd53ad1384892f6007b9ea7cb31fdb6cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 356edb19a4de19b21ff1aa25681b329aa4eb72f1499575c009649efd042f0e0560ec03cc3332bd7d750627ecca85391134a8424ba94300abba113a80bce8b452
|
|
7
|
+
data.tar.gz: c1e894da2db997443e65f6151668b7d617446127c9dc991a9ee770232263c6dc9ffc8362909d58ed3bdf5dec7f3ca4395c26235efdb2b7065467ed1470636aa2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 1.17.8 (2026-11-22)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Build CRM URI from universe domain ([#613](https://github.com/googleapis/google-auth-library-ruby/issues/613))
|
|
8
|
+
* strip -fips suffix from AWS service name in SigV4 signer ([#608](https://github.com/googleapis/google-auth-library-ruby/issues/608))
|
|
9
|
+
|
|
3
10
|
### 1.17.7 (2026-10-23)
|
|
4
11
|
|
|
5
12
|
#### Documentation
|
|
@@ -27,8 +27,19 @@ module Google
|
|
|
27
27
|
# as those provided by the AWS provider or OIDC provider like Azure, etc.
|
|
28
28
|
module ExternalAccountUtils
|
|
29
29
|
# Cloud resource manager URL used to retrieve project information.
|
|
30
|
+
#
|
|
31
|
+
# @deprecated This constant is deprecated and will be removed in a future version.
|
|
32
|
+
# The Cloud Resource Manager URL is constructed dynamically using `universe_domain`.
|
|
30
33
|
CLOUD_RESOURCE_MANAGER = "https://cloudresourcemanager.googleapis.com/v1/projects/".freeze
|
|
31
34
|
|
|
35
|
+
# @private Default universe domain when none is configured.
|
|
36
|
+
DEFAULT_UNIVERSE_DOMAIN = "googleapis.com".freeze
|
|
37
|
+
private_constant :DEFAULT_UNIVERSE_DOMAIN
|
|
38
|
+
|
|
39
|
+
# @private Cloud Resource Manager URL template parameterized by universe domain and project number.
|
|
40
|
+
CLOUD_RESOURCE_MANAGER_URL_TEMPLATE = "https://cloudresourcemanager.%s/v1/projects/%s".freeze
|
|
41
|
+
private_constant :CLOUD_RESOURCE_MANAGER_URL_TEMPLATE
|
|
42
|
+
|
|
32
43
|
##
|
|
33
44
|
# Retrieves the project ID corresponding to the workload identity or workforce pool.
|
|
34
45
|
# For workforce pool credentials, it returns the project ID corresponding to the workforce_pool_user_project.
|
|
@@ -48,7 +59,8 @@ module Google
|
|
|
48
59
|
# if we missing either project number or scope, we won't retrieve project_id
|
|
49
60
|
return nil if project_number.nil? || @scope.nil?
|
|
50
61
|
|
|
51
|
-
|
|
62
|
+
resolved_universe_domain = (respond_to?(:universe_domain) && universe_domain) || DEFAULT_UNIVERSE_DOMAIN
|
|
63
|
+
url = format CLOUD_RESOURCE_MANAGER_URL_TEMPLATE, resolved_universe_domain, project_number
|
|
52
64
|
response = connection.get url do |req|
|
|
53
65
|
req.headers["Authorization"] = "Bearer #{@access_token}"
|
|
54
66
|
req.headers["Content-Type"] = "application/json"
|
|
@@ -71,7 +83,7 @@ module Google
|
|
|
71
83
|
# or nil if it cannot be determined
|
|
72
84
|
#
|
|
73
85
|
def project_number
|
|
74
|
-
segments = @audience.split "/"
|
|
86
|
+
segments = (@audience || "").split "/"
|
|
75
87
|
idx = segments.index "projects"
|
|
76
88
|
return nil if idx.nil? || idx + 1 == segments.size
|
|
77
89
|
segments[idx + 1]
|
data/lib/googleauth/version.rb
CHANGED