omniauth-outrightmental 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,8 @@ module OmniAuth
|
|
5
5
|
class OutrightMental < OmniAuth::Strategies::OAuth2
|
6
6
|
option :client_options, {
|
7
7
|
:site => 'https://ont.io/',
|
8
|
-
:authorize_url => 'https://ont.io
|
9
|
-
:token_url => 'https://ont.io
|
8
|
+
:authorize_url => 'https://ont.io/#/auth/authorize',
|
9
|
+
:token_url => 'https://ont.io/#/auth/access_token'
|
10
10
|
}
|
11
11
|
|
12
12
|
def request_phase
|
@@ -34,11 +34,11 @@ describe OmniAuth::Strategies::OutrightMental do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'should have correct authorize url' do
|
37
|
-
subject.options.client_options.authorize_url.should eq('https://ont.io
|
37
|
+
subject.options.client_options.authorize_url.should eq('https://ont.io/#/auth/authorize')
|
38
38
|
end
|
39
39
|
|
40
40
|
it 'should have correct token url' do
|
41
|
-
subject.options.client_options.token_url.should eq('https://ont.io
|
41
|
+
subject.options.client_options.token_url.should eq('https://ont.io/#/auth/access_token')
|
42
42
|
end
|
43
43
|
|
44
44
|
describe "should be overrideable" do
|