omniauth-bunq 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/omniauth-bunq/version.rb +1 -1
- data/lib/omniauth/strategies/bunq.rb +3 -3
- data/spec/omniauth/strategies/bunq_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfb6038b0da6179e0bddfbb188f1baf2da35d6c3
|
|
4
|
+
data.tar.gz: 674f607d3c204a0e2c2e96f8bfd97dab85833a98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ff4a946a1be57145e40c206cab21f15b2ca1ce18b12d8df467ce689c81a9c4d22f8876dac57c693466da2473eaca5d93fdbe4d67204b22345641f16765b4b19
|
|
7
|
+
data.tar.gz: 7d936269263c8ad48a67e1857ea7071114026acd24e0cfb6055293d7d9dd15b853c828b89bd98e15b499a5c9f0460d22e192ea2b960317601baa40d85adbf5c2
|
|
@@ -4,9 +4,9 @@ module OmniAuth
|
|
|
4
4
|
module Strategies
|
|
5
5
|
class Bunq < OmniAuth::Strategies::OAuth2
|
|
6
6
|
option :client_options, {
|
|
7
|
-
:site => 'https://
|
|
8
|
-
:authorize_url => 'https://
|
|
9
|
-
:token_url => 'https://api
|
|
7
|
+
:site => 'https://oauth.bunq.com/auth',
|
|
8
|
+
:authorize_url => 'https://oauth.bunq.com/auth',
|
|
9
|
+
:token_url => 'https://api.oauth.bunq.com/v1/token'
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
def request_phase
|
|
@@ -30,15 +30,15 @@ describe OmniAuth::Strategies::Bunq do
|
|
|
30
30
|
|
|
31
31
|
context 'client options' do
|
|
32
32
|
it 'should have correct site' do
|
|
33
|
-
expect(subject.options.client_options.site).to eq('https://
|
|
33
|
+
expect(subject.options.client_options.site).to eq('https://oauth.bunq.com/auth')
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
it 'should have correct authorize url' do
|
|
37
|
-
expect(subject.options.client_options.authorize_url).to eq('https://
|
|
37
|
+
expect(subject.options.client_options.authorize_url).to eq('https://oauth.bunq.com/auth')
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
it 'should have correct token url' do
|
|
41
|
-
expect(subject.options.client_options.token_url).to eq('https://api
|
|
41
|
+
expect(subject.options.client_options.token_url).to eq('https://api.oauth.bunq.com/v1/token')
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
describe 'should be overrideable' do
|