omniauth-channel_advisor 1.0.0 → 1.1.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a94ba041dc281dcd457b9d5b8715f65d70ae5515
|
|
4
|
+
data.tar.gz: a4b5535ac347df5c4399ab35de7083d688d31c9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57e3d9bb33a726c05f9097e2a11d83d6d2ca9163e923aaa7cfd11faebf4478ebc368e79f127be069bb52d7aa820f3afd704c3fb0df0405550d5aef75437c99f8
|
|
7
|
+
data.tar.gz: 997c308f0a9a8a6e8fe59b086a8a7dfdd453a529455aee90db7a15bb2a122e8c2618eabbdf4c0cb3db19af6b1849243503591e077e4f41c29cc7789bef41547c
|
|
@@ -14,6 +14,7 @@ module OmniAuth
|
|
|
14
14
|
# access_type: 'offline' - retrieve a refresh token http://developers.channeladvisor.com/rest/#917
|
|
15
15
|
# approval_prompt: 'force' - always show grant screen http://developers.channeladvisor.com/rest/#917
|
|
16
16
|
option :authorize_options, [:scope, :access_type, :approval_prompt]
|
|
17
|
+
option :redirect_uri
|
|
17
18
|
|
|
18
19
|
NAME_KEY = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name".freeze
|
|
19
20
|
UID_KEY = "urn:ca:claim:profile".freeze
|
|
@@ -32,6 +33,11 @@ module OmniAuth
|
|
|
32
33
|
}
|
|
33
34
|
end
|
|
34
35
|
|
|
36
|
+
def callback_url
|
|
37
|
+
override = options.redirect_uri
|
|
38
|
+
override ? override : super
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
def info_hash
|
|
36
42
|
@info_hash ||= Array(raw_info).each_with_object({}){|item, result|
|
|
37
43
|
key = item["Type"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-channel_advisor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ShippingEasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-08-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|