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: 38e29bebbade9c2f6ea14ca4c989b7caf0fa8a20f68c1a91b7f6ab8d983bbf2f
4
- data.tar.gz: 0dabcd9795a62a63d7973d4474c4b633795e1dd571ef7cdf379d515cd402ff4d
3
+ metadata.gz: d3087b76039c8f208611ae484fceb2b122056d43be731e74f80c180a9033442c
4
+ data.tar.gz: 16aa161df1ce38488a555b028292f66be40cec8dfdfe89f926ee348f6d97bdd3
5
5
  SHA512:
6
- metadata.gz: 7acca8b030523991be51371b30675ef4ae03a1bb148052624e082a0af89e097c53ba5d32f91d52b9dc707c462e0689b4958ac2b4bf31a4b93fa113942a645ca5
7
- data.tar.gz: de9fd34836d6effc54bd82693e97568a58956c557951571f796c322cd0cd106ba5b3739711a7857536824e53623919613db6da6dc5927fd278e9710ddd1ad467
6
+ metadata.gz: 98ef7528e1fbce507f13b339636c5f880d790ce0215ca35c92303954e9cdf840f04bf1adfa7348b15d37fc668e78f2f471558d0ed5d10e959672da5010fd319c
7
+ data.tar.gz: dd98406be07fd84399532bda670bd18d4ade820ceab4a723815114d3c55c0701e44a85e7a74ef460e3ff93c5bd01b1c47492dbaef675c94f183cf00a491d39b8
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module SeznamCz
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.5'
6
6
  end
7
7
  end
@@ -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/api/v1',
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/api/v1')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-seznam-cz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sterba