googleauth 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 286a365510084cc4410a7fb76cc6ee21be59372e57c1ef475f14c232cd883c54
4
- data.tar.gz: 413babe33567dfc2d5f2f12df1b3c344c497bea78e32b311ba025e26ebce9314
3
+ metadata.gz: 6209a88a72efb51eb8f3a6921e60d65a46e63983c7acf3c9403accef034d51ce
4
+ data.tar.gz: a8f7f48cf9083daa43c8c1f12ba698bee4c27c10ce78361a295dfe0aecf84f16
5
5
  SHA512:
6
- metadata.gz: 9d478df9ef5cdf0ff86a281b9410c2b33756be34734c06ce858fda704297ae97607b7d254803bcd8f18290a7d6e32cc26b78ea3e7bb1dc0308fcc1faabd35fdf
7
- data.tar.gz: d153a275309125418cafdfd3f222f3c09c5f0b873056c4eb95e676f492cb59b214b28a680b375b76cf4b2bf3560263311cea700c37df14632f9418c774ca9372
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
 
@@ -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.1.0".freeze
19
+ VERSION = "1.1.1".freeze
20
20
  end
21
21
  end
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.0
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: 2021-10-25 00:00:00.000000000 Z
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.2.17
180
+ rubygems_version: 3.3.5
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Google Auth Library for Ruby