fog-google 1.29.3 → 1.29.4
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 +4 -0
- data/lib/fog/google/shared.rb +2 -7
- data/lib/fog/google/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fbb2c15466badb3829494a41234c7db6530ce14379899ffe13ccfcfdc88a1e1
|
|
4
|
+
data.tar.gz: 7f447100fbfbae91310910cdacea6f747f886e95a94a02ee9a24c78e3ced9c1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9ebeed14cab4e2a218d2199738b22465bdb03dd6a921e93852eb3c5e99f64827da2f6a4204de9577e7f1cdede8932d23ef86e0ab5deea41ea181d143fddb1e7
|
|
7
|
+
data.tar.gz: 53b3cbb2fa17945e36a4da0233a0239d6aa67a447b18a9cb68e36d2ce9678fea725340cd797a1552a2000b2b8e524f91677330d94b2b4d849477ec37cf77d05b
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1
|
|
|
4
4
|
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## 1.29.4
|
|
8
|
+
|
|
9
|
+
- #657 Fix handling of universe domains with service key
|
|
10
|
+
|
|
7
11
|
## 1.29.3
|
|
8
12
|
|
|
9
13
|
- #656 Fix IAM credentials not setting universe domain properly
|
data/lib/fog/google/shared.rb
CHANGED
|
@@ -174,8 +174,7 @@ module Fog
|
|
|
174
174
|
# @return [Google::Auth::DefaultCredentials] - google auth object
|
|
175
175
|
def process_application_default_auth(options)
|
|
176
176
|
google_options = options.slice(:universe_domain)
|
|
177
|
-
|
|
178
|
-
credentials
|
|
177
|
+
::Google::Auth.get_application_default(options[:google_api_scope_url], google_options)
|
|
179
178
|
end
|
|
180
179
|
|
|
181
180
|
# Helper method to process fallback authentication
|
|
@@ -216,14 +215,10 @@ module Fog
|
|
|
216
215
|
|
|
217
216
|
validate_json_credentials(json_key)
|
|
218
217
|
|
|
219
|
-
|
|
218
|
+
::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
220
219
|
:json_key_io => StringIO.new(json_key),
|
|
221
220
|
:scope => options[:google_api_scope_url]
|
|
222
221
|
)
|
|
223
|
-
|
|
224
|
-
universe_domain = universe_domain_from_options(options)
|
|
225
|
-
credentials.universe_domain = universe_domain if universe_domain && credentials.respond_to?(:universe_domain=)
|
|
226
|
-
credentials
|
|
227
222
|
end
|
|
228
223
|
|
|
229
224
|
# Helper method to sort out deprecated and missing auth options
|
data/lib/fog/google/version.rb
CHANGED