omniauth-google-id-token 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: 4b756f006ad3cc0cf614b043370928fd7847e757c5466e5f649828251dba82c8
4
- data.tar.gz: 1faaa945a752d1b9d9cecc7db14bf0eba54383c494134a44e48ed52ae2dde598
3
+ metadata.gz: c02ed8f51100b53f1a10ffd42db64294c227301291cd80560b03bed96e1c6e23
4
+ data.tar.gz: e79e6c4ce22a9f3b7a7eb7ab83df37f337208e2e76675c37b23089a90c81e1fe
5
5
  SHA512:
6
- metadata.gz: a03ae591d4d6bfde18fe0649912364a1f80c54a98659f5e0bfd6c317dc9ef1017d9bc0e3e268ac4251e2cedce2e8598645cfa726ad9480100cc11603b0f68c66
7
- data.tar.gz: 755bfe3610a24e8c31a4fa8ce20ade00eff3ef192d8345652574d21868922675dec7625484beaca2d66f7d22cd0d92c80fbfdb557aca3465f74ad164a9150065
6
+ metadata.gz: 2f429d86224146727b18ea4b462c81eadfefe070e971e92c099572030a8bacd4d73be63d296b8730e9628e6b075709a3cea6ea3c093fb31abf4b3721b8ab94ee
7
+ data.tar.gz: 43672c465cf5ed00ac25ca7f94e3fc0d555d22dca99a97af5a19b043fd89863d5e4ac63d0189a300df38a7e94ce6c1bd764556ab0da89b2a10babf43feac8fdf
data/Gemfile CHANGED
@@ -4,7 +4,6 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  group :test, :development do
7
- gem 'googleauth'
8
7
  gem 'jwt' # For testing
9
8
  gem 'multi_json' # For testing
10
9
  gem 'omniauth'
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GoogleIdToken
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.1.1'.freeze
4
4
  end
5
5
  end
@@ -77,7 +77,7 @@ module OmniAuth
77
77
  private
78
78
 
79
79
  def validator
80
- ::Google::Auth::IDTokens::Verifier
80
+ ::Google::Auth::IDTokens
81
81
  end
82
82
 
83
83
  def uid_lookup
@@ -33,7 +33,8 @@ describe OmniAuth::Strategies::GoogleIdToken do # rubocop:disable Metrics/BlockL
33
33
  {
34
34
  aud_claim: payload[:aud],
35
35
  azp_claim: payload[:azp],
36
- client_id: client_id
36
+ client_id: client_id,
37
+ provider_ignores_state: true
37
38
  }
38
39
  ]
39
40
  end
@@ -72,7 +73,7 @@ describe OmniAuth::Strategies::GoogleIdToken do # rubocop:disable Metrics/BlockL
72
73
 
73
74
  context 'callback phase' do
74
75
  it 'should decode the response' do
75
- allow(::Google::Auth::IDTokens::Verifier).to receive(:verify_oidc)
76
+ allow(::Google::Auth::IDTokens).to receive(:verify_oidc)
76
77
  .with(id_token, aud: client_id)
77
78
  .and_return(payload)
78
79
 
@@ -82,7 +83,7 @@ describe OmniAuth::Strategies::GoogleIdToken do # rubocop:disable Metrics/BlockL
82
83
 
83
84
  it 'should not work without required fields' do
84
85
  payload.delete('email')
85
- allow(::Google::Auth::IDTokens::Verifier).to receive(:verify_oidc)
86
+ allow(::Google::Auth::IDTokens).to receive(:verify_oidc)
86
87
  .with(id_token, aud: client_id)
87
88
  .and_return(payload)
88
89
 
@@ -91,7 +92,7 @@ describe OmniAuth::Strategies::GoogleIdToken do # rubocop:disable Metrics/BlockL
91
92
  end
92
93
 
93
94
  it 'should assign the uid' do
94
- allow(::Google::Auth::IDTokens::Verifier).to receive(:verify_oidc)
95
+ allow(::Google::Auth::IDTokens).to receive(:verify_oidc)
95
96
  .with(id_token, aud: client_id)
96
97
  .and_return(payload)
97
98
  post "#{api_url}/callback", id_token: id_token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-google-id-token
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
  - Joshua Morris