omniauth-ebay-oauth 0.1.1 → 0.2.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 +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +4 -3
- data/CHANGELOG.md +31 -0
- data/README.md +7 -3
- data/lib/omniauth/ebay-oauth/version.rb +1 -1
- data/lib/omniauth/strategies/{ebay.rb → ebay_oauth.rb} +1 -1
- data/lib/omniauth-ebay-oauth.rb +1 -1
- data/spec/omniauth/strategies/{ebay_spec.rb → ebay_oauth_spec.rb} +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 76629a38f44a3dca39c9b623f58fec1e984c3d92cf395cbfaa06f6f4a145789c
|
4
|
+
data.tar.gz: f013e52aa87b50efb83d4db7c4c5c896f230809f1482bf035fd32f0acc7a5beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f3ca9e26bd5533b3f0abcb59a34b3a1ce7fdd2271c8cb911fd8fd491da19519d354dba3152cdc0fd9c752bba2fe592a6c6458cf21f8a81c153d9f385dcf534
|
7
|
+
data.tar.gz: af48978d15b1750b595da5c65d67e448ec1b96631efaab0711d3780445452c15f97c53bf2053dd66cc20657fe2ae458d8d6752b0bd28cbcba8021550c5039146
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3
|
1
|
+
2.4.3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [0.2.0] - 2018-03-16
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
- Renamed strategy from `ebay` to `ebay_oauth`. @Envek
|
12
|
+
|
13
|
+
This allow to use this strategy simultaneously with old strategies (like [omniauth-ebay](https://github.com/TheGiftsProject/omniauth-ebay) and [ebay_request](https://github.com/gzigzigzeo/ebay_request#omniauth-strategy))
|
14
|
+
|
15
|
+
As eBay allows to have only one OAuth RUName per application keyset while allowing to have many Auth'n'auth RUNames, it may be desirable to use Auth'n'auth for auxilary signins, where obtaining of OAuth tokens is not required.
|
16
|
+
|
17
|
+
## [0.1.1] - 2018-01-09
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
|
21
|
+
- Add missing require to fix gem load errors when this gem is being required from another gem. @Envek
|
22
|
+
|
23
|
+
|
24
|
+
## [0.1.0] - 2017-11-27
|
25
|
+
|
26
|
+
- Initial release: fully working strategy. @ignat-z
|
27
|
+
|
28
|
+
|
29
|
+
[0.2.0]: https://github.com/evilmartians/omniauth-ebay-oauth/compare/v0.1.1...v0.2.0
|
30
|
+
[0.1.1]: https://github.com/evilmartians/omniauth-ebay-oauth/compare/v0.1.0...v0.1.1
|
31
|
+
[0.1.0]: https://github.com/evilmartians/omniauth-ebay-oauth/compare/5213dada5fec8df5da551daf763b6acc84ec7330...v0.1.0
|
data/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[](https://badge.fury.io/rb/omniauth-ebay-oauth)
|
2
|
+
[](https://travis-ci.org/evilmartians/omniauth-ebay-oauth)
|
3
|
+
[](http://cultofmartians.com/tasks/ebay-oauth-signin.html)
|
4
|
+
|
1
5
|
# omniauth-ebay-oauth
|
2
6
|
|
3
7
|
OmniAuth Strategy for eBay Apps (for using with eBay REST APIs)
|
@@ -48,7 +52,7 @@ bundle install
|
|
48
52
|
|
49
53
|
```ruby
|
50
54
|
use OmniAuth::Builder do
|
51
|
-
provider :
|
55
|
+
provider :ebay_oauth, CLIENT_ID, CLIENT_SECRET, callback_url: RU_NAME,
|
52
56
|
sandbox: false, scope: 'https://api.ebay.com/oauth/api_scope' # redefining additional default options
|
53
57
|
end
|
54
58
|
```
|
@@ -74,8 +78,8 @@ require 'omniauth-ebay-oauth'
|
|
74
78
|
|
75
79
|
use Rack::Session::Cookie
|
76
80
|
use OmniAuth::Builder do
|
77
|
-
provider :
|
78
|
-
callback_url: ENV['EBAY_RU_NAME']
|
81
|
+
provider :ebay_oauth, ENV['EBAY_CLIENT_ID'], ENV['EBAY_CLIENT_SECRET'],
|
82
|
+
callback_url: ENV['EBAY_RU_NAME'], name: 'ebay'
|
79
83
|
end
|
80
84
|
|
81
85
|
get '/' do
|
@@ -5,7 +5,7 @@ require 'omniauth-oauth2'
|
|
5
5
|
module OmniAuth
|
6
6
|
module Strategies
|
7
7
|
# OmniAuth strategy for eBay
|
8
|
-
class
|
8
|
+
class EbayOauth < OmniAuth::Strategies::OAuth2
|
9
9
|
option :production_client_options,
|
10
10
|
user_info_endpoint: 'https://api.ebay.com/ws/api.dll',
|
11
11
|
token_url: 'https://api.ebay.com/identity/v1/oauth2/token',
|
data/lib/omniauth-ebay-oauth.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-ebay-oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignat Zakrevsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- ".rubocop.yml"
|
135
135
|
- ".ruby-version"
|
136
136
|
- ".travis.yml"
|
137
|
+
- CHANGELOG.md
|
137
138
|
- Gemfile
|
138
139
|
- LICENSE
|
139
140
|
- README.md
|
@@ -144,14 +145,14 @@ files:
|
|
144
145
|
- lib/omniauth/ebay-oauth/user_info.rb
|
145
146
|
- lib/omniauth/ebay-oauth/user_info_request.rb
|
146
147
|
- lib/omniauth/ebay-oauth/version.rb
|
147
|
-
- lib/omniauth/strategies/
|
148
|
+
- lib/omniauth/strategies/ebay_oauth.rb
|
148
149
|
- omniauth-ebay-oauth.gemspec
|
149
150
|
- spec/fixtures/request_headers.yml
|
150
151
|
- spec/fixtures/result_failure.xml
|
151
152
|
- spec/fixtures/result_success.xml
|
152
153
|
- spec/omniauth/ebay-oauth/user_info_request_spec.rb
|
153
154
|
- spec/omniauth/ebay-oauth/user_info_spec.rb
|
154
|
-
- spec/omniauth/strategies/
|
155
|
+
- spec/omniauth/strategies/ebay_oauth_spec.rb
|
155
156
|
- spec/spec_helper.rb
|
156
157
|
homepage: https://github.com/evilmartians/omniauth-ebay-oauth
|
157
158
|
licenses:
|
@@ -173,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
174
|
version: '0'
|
174
175
|
requirements: []
|
175
176
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.7.6
|
177
178
|
signing_key:
|
178
179
|
specification_version: 4
|
179
180
|
summary: OmniAuth strategy for new eBay OAuth API
|