omniauth-seznam-cz 0.0.3 → 0.0.5
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: d3087b76039c8f208611ae484fceb2b122056d43be731e74f80c180a9033442c
|
4
|
+
data.tar.gz: 16aa161df1ce38488a555b028292f66be40cec8dfdfe89f926ee348f6d97bdd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98ef7528e1fbce507f13b339636c5f880d790ce0215ca35c92303954e9cdf840f04bf1adfa7348b15d37fc668e78f2f471558d0ed5d10e959672da5010fd319c
|
7
|
+
data.tar.gz: dd98406be07fd84399532bda670bd18d4ade820ceab4a723815114d3c55c0701e44a85e7a74ef460e3ff93c5bd01b1c47492dbaef675c94f183cf00a491d39b8
|
@@ -20,8 +20,9 @@ module OmniAuth
|
|
20
20
|
option :authorized_client_ids, []
|
21
21
|
|
22
22
|
option :client_options,
|
23
|
-
site: 'https://login.szn.cz
|
24
|
-
authorize_url: '/oauth/auth',
|
23
|
+
site: 'https://login.szn.cz',
|
24
|
+
authorize_url: '/api/v1/oauth/auth',
|
25
|
+
token_url: '/api/v1/oauth/token',
|
25
26
|
auth_scheme: :request_body
|
26
27
|
|
27
28
|
def authorize_params
|
@@ -31,15 +31,15 @@ describe OmniAuth::Strategies::SeznamCz do
|
|
31
31
|
|
32
32
|
describe '#client_options' do
|
33
33
|
it 'has correct site' do
|
34
|
-
expect(subject.client.site).to eq('https://login.szn.cz
|
34
|
+
expect(subject.client.site).to eq('https://login.szn.cz')
|
35
35
|
end
|
36
36
|
|
37
37
|
it 'has correct authorize_url' do
|
38
|
-
expect(subject.client.options[:authorize_url]).to eq('/oauth/auth')
|
38
|
+
expect(subject.client.options[:authorize_url]).to eq('/api/v1/oauth/auth')
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'has correct token_url' do
|
42
|
-
expect(subject.client.options[:token_url]).to eq('/oauth/token')
|
42
|
+
expect(subject.client.options[:token_url]).to eq('/api/v1/oauth/token')
|
43
43
|
end
|
44
44
|
|
45
45
|
describe 'overrides' do
|