omniauth-ebay 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ebay_api.rb +2 -1
- data/lib/omniauth/strategies/ebay.rb +2 -1
- data/lib/omniauth-ebay/version.rb +1 -1
- data/omniauth-ebay.gemspec +0 -1
- metadata +2 -18
data/lib/ebay_api.rb
CHANGED
@@ -83,7 +83,8 @@ module EbayAPI
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def ebay_login_url(session_id, ruparams={})
|
86
|
-
|
86
|
+
login_url = options.loginurl || EBAY_LOGIN_URL
|
87
|
+
url = "#{login_url}?#{options.auth_type}&runame=#{options.runame}&#{session_id_field_name}=#{URI.escape(session_id).gsub('+', '%2B')}"
|
87
88
|
|
88
89
|
ruparams[:internal_return_to] = internal_return_to if internal_return_to
|
89
90
|
ruparams[:sid] = session_id
|
@@ -14,7 +14,7 @@ module OmniAuth
|
|
14
14
|
SIMPLE_SID_FIELD_NAME = "SessId"
|
15
15
|
end
|
16
16
|
|
17
|
-
args [:runame, :devid, :appid, :certid, :siteid, :apiurl, :auth_type]
|
17
|
+
args [:runame, :devid, :appid, :certid, :siteid, :apiurl, :auth_type, :loginurl]
|
18
18
|
option :name, "ebay"
|
19
19
|
option :runame, nil
|
20
20
|
option :devid, nil
|
@@ -23,6 +23,7 @@ module OmniAuth
|
|
23
23
|
option :siteid, nil
|
24
24
|
option :apiurl, nil
|
25
25
|
option :auth_type, AuthType::SSO
|
26
|
+
option :loginurl, nil
|
26
27
|
|
27
28
|
uid { raw_info['EIASToken'] }
|
28
29
|
info do
|
data/omniauth-ebay.gemspec
CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_runtime_dependency 'activesupport'
|
24
24
|
s.add_development_dependency 'rspec', '~> 2.7'
|
25
25
|
s.add_development_dependency 'rake'
|
26
|
-
s.add_development_dependency 'multi_xml'
|
27
26
|
s.add_development_dependency 'rack-test'
|
28
27
|
s.add_development_dependency 'vcr'
|
29
28
|
s.add_development_dependency 'fakeweb'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-ebay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
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: 2014-03-
|
12
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -91,22 +91,6 @@ dependencies:
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: multi_xml
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
94
|
- !ruby/object:Gem::Dependency
|
111
95
|
name: rack-test
|
112
96
|
requirement: !ruby/object:Gem::Requirement
|