googleauth 1.1.0 → 1.1.1
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 +7 -0
- data/README.md +1 -0
- data/lib/googleauth/user_refresh.rb +5 -2
- data/lib/googleauth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6209a88a72efb51eb8f3a6921e60d65a46e63983c7acf3c9403accef034d51ce
|
|
4
|
+
data.tar.gz: a8f7f48cf9083daa43c8c1f12ba698bee4c27c10ce78361a295dfe0aecf84f16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c32c5153249395a68066503347bfe6860b07334d7e06fc5b7a71731fa00ef4c63b143910a59d6651e88b011453ca44dde347b63bd8d9c3bdea62ad595bd2953
|
|
7
|
+
data.tar.gz: 72f2eccde00fbcf23341d3e9f13ae0aabdc368e2ea68609ab58f0f5ffa3072e1e5efce9bee8289ffada8e80366583de41100d1af577d1ab60df7cc7f75fced09
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### [1.1.1](https://www.github.com/googleapis/google-auth-library-ruby/compare/googleauth/v1.1.0...googleauth/v1.1.1) (2022-02-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add quota_project to user refresh credentials ([#361](https://www.github.com/googleapis/google-auth-library-ruby/issues/361)) ([0eb3c28](https://www.github.com/googleapis/google-auth-library-ruby/commit/0eb3c2850813c99c1100df6371c94ddef6e00b00))
|
|
9
|
+
|
|
3
10
|
## [1.1.0](https://www.github.com/googleapis/google-auth-library-ruby/compare/googleauth/v1.0.0...googleauth/v1.1.0) (2021-10-24)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -116,6 +116,7 @@ token_store = Google::Auth::Stores::FileTokenStore.new(
|
|
|
116
116
|
:file => '/path/to/tokens.yaml')
|
|
117
117
|
authorizer = Google::Auth::UserAuthorizer.new(client_id, scope, token_store)
|
|
118
118
|
|
|
119
|
+
user_id = ENV['USER']
|
|
119
120
|
credentials = authorizer.get_credentials(user_id)
|
|
120
121
|
if credentials.nil?
|
|
121
122
|
url = authorizer.get_authorization_url(base_url: OOB_URI )
|
|
@@ -36,6 +36,7 @@ module Google
|
|
|
36
36
|
REVOKE_TOKEN_URI = "https://oauth2.googleapis.com/revoke".freeze
|
|
37
37
|
extend CredentialsLoader
|
|
38
38
|
attr_reader :project_id
|
|
39
|
+
attr_reader :quota_project_id
|
|
39
40
|
|
|
40
41
|
# Create a UserRefreshCredentials.
|
|
41
42
|
#
|
|
@@ -48,14 +49,15 @@ module Google
|
|
|
48
49
|
"client_id" => ENV[CredentialsLoader::CLIENT_ID_VAR],
|
|
49
50
|
"client_secret" => ENV[CredentialsLoader::CLIENT_SECRET_VAR],
|
|
50
51
|
"refresh_token" => ENV[CredentialsLoader::REFRESH_TOKEN_VAR],
|
|
51
|
-
"project_id" => ENV[CredentialsLoader::PROJECT_ID_VAR]
|
|
52
|
+
"project_id" => ENV[CredentialsLoader::PROJECT_ID_VAR],
|
|
53
|
+
"quota_project_id" => nil
|
|
52
54
|
}
|
|
53
|
-
|
|
54
55
|
new(token_credential_uri: TOKEN_CRED_URI,
|
|
55
56
|
client_id: user_creds["client_id"],
|
|
56
57
|
client_secret: user_creds["client_secret"],
|
|
57
58
|
refresh_token: user_creds["refresh_token"],
|
|
58
59
|
project_id: user_creds["project_id"],
|
|
60
|
+
quota_project_id: user_creds["quota_project_id"],
|
|
59
61
|
scope: scope)
|
|
60
62
|
.configure_connection(options)
|
|
61
63
|
end
|
|
@@ -77,6 +79,7 @@ module Google
|
|
|
77
79
|
options[:authorization_uri] ||= AUTHORIZATION_URI
|
|
78
80
|
@project_id = options[:project_id]
|
|
79
81
|
@project_id ||= CredentialsLoader.load_gcloud_project_id
|
|
82
|
+
@quota_project_id = options[:quota_project_id]
|
|
80
83
|
super options
|
|
81
84
|
end
|
|
82
85
|
|
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.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Emiola
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
177
177
|
- !ruby/object:Gem::Version
|
|
178
178
|
version: '0'
|
|
179
179
|
requirements: []
|
|
180
|
-
rubygems_version: 3.
|
|
180
|
+
rubygems_version: 3.3.5
|
|
181
181
|
signing_key:
|
|
182
182
|
specification_version: 4
|
|
183
183
|
summary: Google Auth Library for Ruby
|