omniauth-outrightmental 0.1.1 → 0.1.2
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.
|
@@ -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
|
|
@@ -6,8 +6,8 @@ describe OmniAuth::Strategies::OutrightMental do
|
|
|
6
6
|
let(:response) { double('Response', :parsed => parsed_response) }
|
|
7
7
|
|
|
8
8
|
let(:enterprise_site) { 'https://some.other.site.com/api/v3' }
|
|
9
|
-
let(:enterprise_authorize_url) { 'https://some.other.site.com/
|
|
10
|
-
let(:enterprise_token_url) { 'https://some.other.site.com/
|
|
9
|
+
let(:enterprise_authorize_url) { 'https://some.other.site.com/auth/authorize' }
|
|
10
|
+
let(:enterprise_token_url) { 'https://some.other.site.com/auth/access_token' }
|
|
11
11
|
let(:enterprise) do
|
|
12
12
|
OmniAuth::Strategies::OutrightMental.new('OUTRIGHTMENTAL_KEY', 'OUTRIGHTMENTAL_SECRET',
|
|
13
13
|
{
|
|
@@ -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
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-outrightmental
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-05-
|
|
12
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: omniauth
|