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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c02ed8f51100b53f1a10ffd42db64294c227301291cd80560b03bed96e1c6e23
|
4
|
+
data.tar.gz: e79e6c4ce22a9f3b7a7eb7ab83df37f337208e2e76675c37b23089a90c81e1fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f429d86224146727b18ea4b462c81eadfefe070e971e92c099572030a8bacd4d73be63d296b8730e9628e6b075709a3cea6ea3c093fb31abf4b3721b8ab94ee
|
7
|
+
data.tar.gz: 43672c465cf5ed00ac25ca7f94e3fc0d555d22dca99a97af5a19b043fd89863d5e4ac63d0189a300df38a7e94ce6c1bd764556ab0da89b2a10babf43feac8fdf
|
data/Gemfile
CHANGED
@@ -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
|
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
|
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
|
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
|