omniauth-signnow 0.5.1 → 0.5.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/omniauth/strategies/signnow.rb +4 -4
- data/lib/omniauth-signnow/version.rb +1 -1
- data/spec/omniauth/strategies/signnow_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: adb4f758067fc40d9d27cb66b59ae1cfb89651a2
|
|
4
|
+
data.tar.gz: f262fbae88cdee49f2b7a188d914310c09cb937e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3511368a80edb13f4b21f04866d50098053eec185070b848d93c65fb649fddfcdfc64c2e5e8092521325c584f8419873c4ad1f8f9dda04ac85ec1055dcc9d4b
|
|
7
|
+
data.tar.gz: 7bcf880a1a860ec511dc582aa9fd5d9d8f95ac0e45e938e9dbdd70b36c1bbff45b86f7b7a421cf3acf8b85dec548c26299e458f4ee7c7b4793ab006531b77d8d
|
data/Gemfile.lock
CHANGED
|
@@ -11,9 +11,9 @@ module OmniAuth
|
|
|
11
11
|
# This is where you pass the options you would pass when
|
|
12
12
|
# initializing your consumer from the OAuth gem.
|
|
13
13
|
option :client_options, {
|
|
14
|
-
site: 'https://api.signnow.com
|
|
15
|
-
authorize_url: 'https://
|
|
16
|
-
token_url: 'https://api.signnow.com/
|
|
14
|
+
site: 'https://api.signnow.com',
|
|
15
|
+
authorize_url: 'https://signnow.com/proxy/index.php/authorize',
|
|
16
|
+
token_url: 'https://api.signnow.com/oauth2/token'
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
option :authorize_params, {
|
|
@@ -41,7 +41,7 @@ module OmniAuth
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def raw_info
|
|
44
|
-
@raw_info ||= access_token.get('https://api.signnow.com/
|
|
44
|
+
@raw_info ||= access_token.get('https://api.signnow.com/user').parsed
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def build_access_token
|
|
@@ -30,11 +30,11 @@ describe OmniAuth::Strategies::Signnow do
|
|
|
30
30
|
describe '#client_options' do
|
|
31
31
|
|
|
32
32
|
it 'should be initialized with correct authorize url' do
|
|
33
|
-
expect(subject.client.options[:authorize_url]).to eql 'https://
|
|
33
|
+
expect(subject.client.options[:authorize_url]).to eql 'https://signnow.com/proxy/index.php/authorize'
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
it 'should be initialized with correct token url' do
|
|
37
|
-
expect(subject.client.options[:token_url]).to eql 'https://api.signnow.com/
|
|
37
|
+
expect(subject.client.options[:token_url]).to eql 'https://api.signnow.com/oauth2/token'
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
describe "overrides" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-signnow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andres Bravo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth
|