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: f7096ff9147d2c2ef199b51393cd170be2b90542
4
- data.tar.gz: 63d7072cfdb50ce6de73683890d8473ddf1b68da
3
+ metadata.gz: a94ba041dc281dcd457b9d5b8715f65d70ae5515
4
+ data.tar.gz: a4b5535ac347df5c4399ab35de7083d688d31c9a
5
5
  SHA512:
6
- metadata.gz: fd40b1fababbd79b1de4d4a15e53d75faef0c23a766bac9b5b73ad5d0d3913fea5f5677a046b8b5db3968fa8d579a787488779e4e9afb2f19e30f57ebaa8a3a2
7
- data.tar.gz: ef1e432fd80a6eeb840b0f9b2b0739fb7377a66fcd43daa1b856d413389229762db84e2d3ae0751b01fa3e708c4709c83edf2d48d1689c698a7217cf3d236896
6
+ metadata.gz: 57e3d9bb33a726c05f9097e2a11d83d6d2ca9163e923aaa7cfd11faebf4478ebc368e79f127be069bb52d7aa820f3afd704c3fb0df0405550d5aef75437c99f8
7
+ data.tar.gz: 997c308f0a9a8a6e8fe59b086a8a7dfdd453a529455aee90db7a15bb2a122e8c2618eabbdf4c0cb3db19af6b1849243503591e077e4f41c29cc7789bef41547c
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module ChannelAdvisor
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -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.0.0
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: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2