omniauth-paypal-oauth2 1.4.14 → 1.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +88 -95
- data/lib/omniauth-paypal-oauth2.rb +3 -1
- data/lib/omniauth/paypal_oauth2.rb +3 -1
- data/lib/omniauth/paypal_oauth2/version.rb +5 -3
- data/lib/omniauth/strategies/paypal_oauth2.rb +81 -75
- metadata +26 -28
- data/CHANGELOG.md +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80958fffe707e75dfb5e29786365dcee33d9dd1f457c45ae2db036d2ffef6442
|
4
|
+
data.tar.gz: a701b23656f6e52ff593f0dfff415c3519a63a69ae88a338c648521ec48f460f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2474171bd53235015a43218caa9bb89cf0dbe24baf57cf6b0ee8e595a0630494fd455206e3ffddb11b3fb5682e73ef78dd4ae0e4873aedc07ad9ca0e7d7e6cf7
|
7
|
+
data.tar.gz: 2b4c4d05c78d31a5e4aeecade2dc83d331d85d4a31fb5224d29517b459e926230395190d6ad0f8e57f68c5561d1bfcfef53f12cdf777519ac1143de937ceb55b
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# OmniAuth PayPal OAuth2 Strategy
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/omniauth-paypal-oauth2.svg)](https://badge.fury.io/rb/omniauth-paypal-oauth2)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/omniauth-paypal-oauth2.svg)](https://badge.fury.io/rb/omniauth-paypal-oauth2) ![Travis](https://travis-ci.org/jonhue/omniauth-paypal-oauth2.svg?branch=master)
|
4
4
|
|
5
5
|
Strategy to authenticate with PayPal via OmniAuth.
|
6
6
|
|
@@ -17,16 +17,15 @@ For more details, read the PayPal docs: https://developer.paypal.com/docs/integr
|
|
17
17
|
|
18
18
|
* [Installation](#installation)
|
19
19
|
* [Usage](#usage)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
* [PayPal API Setup](#paypal-api-setup)
|
21
|
+
* [Rails middleware](#rails-middleware)
|
22
|
+
* [Devise](#Devise)
|
23
|
+
* [Configuration](#configuration)
|
24
|
+
* [Auth hash](#auth-hash)
|
25
|
+
* [Testing](#testing)
|
25
26
|
* [To Do](#to-do)
|
26
27
|
* [Contributing](#contributing)
|
27
|
-
|
28
|
-
* [Semantic versioning](#semantic-versioning)
|
29
|
-
* [License](#license)
|
28
|
+
* [Semantic versioning](#semantic-versioning)
|
30
29
|
|
31
30
|
---
|
32
31
|
|
@@ -35,7 +34,7 @@ For more details, read the PayPal docs: https://developer.paypal.com/docs/integr
|
|
35
34
|
Add to your `Gemfile`:
|
36
35
|
|
37
36
|
```ruby
|
38
|
-
gem
|
37
|
+
gem 'omniauth-paypal-oauth2'
|
39
38
|
```
|
40
39
|
|
41
40
|
And then execute:
|
@@ -46,6 +45,12 @@ Or install it yourself as:
|
|
46
45
|
|
47
46
|
$ gem install omniauth-paypal-oauth2
|
48
47
|
|
48
|
+
If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
gem 'omniauth-paypal-oauth2', github: 'jonhue/omniauth-paypal-oauth2'
|
52
|
+
```
|
53
|
+
|
49
54
|
---
|
50
55
|
|
51
56
|
## Usage
|
@@ -66,7 +71,7 @@ Here's an example for adding the middleware to a Rails app in `config/initialize
|
|
66
71
|
|
67
72
|
```ruby
|
68
73
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
69
|
-
|
74
|
+
provider :paypal_oauth2, ENV['PAYPAL_CLIENT_ID'], ENV['PAYPAL_CLIENT_SECRET']
|
70
75
|
end
|
71
76
|
```
|
72
77
|
|
@@ -79,17 +84,17 @@ You can now access the OmniAuth PayPal OAuth2 URL: `/auth/paypal_oauth2`
|
|
79
84
|
First define your application id and secret in `config/initializers/devise.rb`. Do not use the snippet mentioned in the [Usage](https://github.com/jonhue/omniauth-paypal-oauth2#usage) section.
|
80
85
|
|
81
86
|
```ruby
|
82
|
-
require
|
83
|
-
config.omniauth :paypal_oauth2,
|
87
|
+
require 'omniauth-paypal-oauth2'
|
88
|
+
config.omniauth :paypal_oauth2, 'PAYPAL_CLIENT_ID', 'PAYPAL_CLIENT_SECRET'
|
84
89
|
```
|
85
90
|
|
86
91
|
Then add the following to 'config/routes.rb' so the callback routes are defined.
|
87
92
|
|
88
93
|
```ruby
|
89
|
-
devise_for :users, :controllers => { :omniauth_callbacks =>
|
94
|
+
devise_for :users, :controllers => { :omniauth_callbacks => 'users/omniauth_callbacks' }
|
90
95
|
```
|
91
96
|
|
92
|
-
Make sure your model is omniauthable. Generally this is
|
97
|
+
Make sure your model is omniauthable. Generally this is `'/app/models/user.rb'`
|
93
98
|
|
94
99
|
```ruby
|
95
100
|
devise :omniauthable, :omniauth_providers => [:paypal_oauth2]
|
@@ -100,16 +105,16 @@ Then make sure your callbacks controller is setup.
|
|
100
105
|
```ruby
|
101
106
|
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
102
107
|
def paypal_oauth2
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
108
|
+
# You need to implement the method below in your model (e.g. app/models/user.rb)
|
109
|
+
@user = User.from_omniauth(request.env['omniauth.auth'])
|
110
|
+
|
111
|
+
if @user.persisted?
|
112
|
+
flash[:notice] = I18n.t 'devise.omniauth_callbacks.success', :kind => 'PayPal'
|
113
|
+
sign_in_and_redirect @user, :event => :authentication
|
114
|
+
else
|
115
|
+
session['devise.paypal_data'] = request.env['omniauth.auth']
|
116
|
+
redirect_to new_user_registration_url
|
117
|
+
end
|
113
118
|
end
|
114
119
|
end
|
115
120
|
```
|
@@ -118,27 +123,27 @@ and bind to or create the user
|
|
118
123
|
|
119
124
|
```ruby
|
120
125
|
def self.from_omniauth(access_token)
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
126
|
+
data = access_token.info
|
127
|
+
user = User.where(:email => data['email']).first
|
128
|
+
|
129
|
+
# Uncomment the section below if you want users to be created if they don't exist
|
130
|
+
# unless user
|
131
|
+
# user = User.create(name: data['name'],
|
132
|
+
# email: data['email'],
|
133
|
+
# password: Devise.friendly_token[0,20]
|
134
|
+
# )
|
135
|
+
# end
|
136
|
+
user
|
132
137
|
end
|
133
138
|
```
|
134
139
|
|
135
140
|
For your views you can login using:
|
136
141
|
|
137
142
|
```erb
|
138
|
-
<%= link_to
|
143
|
+
<%= link_to 'Sign in with PayPal', user_paypal_oauth2_omniauth_authorize_path %>
|
139
144
|
|
140
145
|
<%# Devise prior 4.1.0: %>
|
141
|
-
<%= link_to
|
146
|
+
<%= link_to 'Sign in with PayPal', user_omniauth_authorize_path(:paypal_oauth2) %>
|
142
147
|
```
|
143
148
|
|
144
149
|
An overview is available at https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
|
@@ -173,45 +178,45 @@ If you click from your [Applications Dashboard](https://developer.paypal.com/dev
|
|
173
178
|
|
174
179
|
### Auth Hash
|
175
180
|
|
176
|
-
Here's an example of an authentication hash available in the callback by accessing `request.env[
|
181
|
+
Here's an example of an authentication hash available in the callback by accessing `request.env['omniauth.auth']`:
|
177
182
|
|
178
183
|
```ruby
|
179
184
|
{
|
180
|
-
provider:
|
181
|
-
uid:
|
185
|
+
provider: 'paypal',
|
186
|
+
uid: 'bathjJwvdhKjgfgh8Jd745J7dh5Qkgflbnczd65dfnw',
|
182
187
|
info: {
|
183
|
-
name:
|
184
|
-
email:
|
185
|
-
first_name:
|
186
|
-
last_name:
|
187
|
-
given_name:
|
188
|
-
family_name:
|
189
|
-
location:
|
190
|
-
phone:
|
188
|
+
name: 'John Smith',
|
189
|
+
email: 'example@example.com',
|
190
|
+
first_name: 'John',
|
191
|
+
last_name: 'Smith',
|
192
|
+
given_name: 'John',
|
193
|
+
family_name: 'Smith',
|
194
|
+
location: 'Moscow',
|
195
|
+
phone: '71234567890'
|
191
196
|
},
|
192
197
|
credentials: {
|
193
|
-
token:
|
194
|
-
refresh_token:
|
198
|
+
token: 'token',
|
199
|
+
refresh_token: 'refresh_token',
|
195
200
|
expires_at: 1355082790,
|
196
201
|
expires: true
|
197
202
|
},
|
198
203
|
extra: {
|
199
|
-
account_creation_date:
|
200
|
-
account_type:
|
201
|
-
user_id:
|
204
|
+
account_creation_date: '2008-04-21',
|
205
|
+
account_type: 'PERSONAL',
|
206
|
+
user_id: 'https://www.paypal.com/webapps/auth/identity/user/bathjJwvdhKjgfgh8Jd745J7dh5Qkgflbnczd65dfnw',
|
202
207
|
address: {
|
203
|
-
country:
|
204
|
-
locality:
|
205
|
-
postal_code:
|
206
|
-
region:
|
207
|
-
street_address:
|
208
|
+
country: 'US',
|
209
|
+
locality: 'San Jose',
|
210
|
+
postal_code: '95131',
|
211
|
+
region: 'CA',
|
212
|
+
street_address: '1 Main St'
|
208
213
|
},
|
209
|
-
language:
|
210
|
-
locale:
|
214
|
+
language: 'en_US',
|
215
|
+
locale: 'en_US',
|
211
216
|
verified_account: true,
|
212
|
-
zoneinfo:
|
213
|
-
age_range:
|
214
|
-
birthday:
|
217
|
+
zoneinfo: 'America/Los_Angeles',
|
218
|
+
age_range: '31-35',
|
219
|
+
birthday: '1982-01-01'
|
215
220
|
}
|
216
221
|
}
|
217
222
|
```
|
@@ -220,50 +225,38 @@ For more details see the PayPal [List Of Attributes](https://developer.paypal.co
|
|
220
225
|
|
221
226
|
---
|
222
227
|
|
223
|
-
##
|
224
|
-
|
225
|
-
[Here](https://github.com/jonhue/omniauth-paypal-oauth2/projects/1) is the full list of current projects.
|
228
|
+
## Testing
|
226
229
|
|
227
|
-
|
230
|
+
1. Fork this repository
|
231
|
+
2. Clone your forked git locally
|
232
|
+
3. Install dependencies
|
228
233
|
|
229
|
-
|
234
|
+
`$ bundle install`
|
230
235
|
|
231
|
-
|
236
|
+
4. Run specs
|
232
237
|
|
233
|
-
|
238
|
+
`$ bundle exec rspec`
|
234
239
|
|
235
|
-
|
240
|
+
5. Run RuboCop
|
236
241
|
|
237
|
-
|
242
|
+
`$ bundle exec rubocop`
|
238
243
|
|
239
|
-
|
244
|
+
---
|
240
245
|
|
241
|
-
|
246
|
+
## To Do
|
242
247
|
|
243
|
-
|
248
|
+
We use [GitHub projects](https://github.com/jonhue/omniauth-paypal-oauth2/projects/1) to coordinate the work on this project.
|
244
249
|
|
245
|
-
|
250
|
+
To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/omniauth-paypal-oauth2/issues/new).
|
246
251
|
|
247
|
-
|
252
|
+
---
|
248
253
|
|
249
|
-
|
254
|
+
## Contributing
|
250
255
|
|
251
|
-
|
256
|
+
We hope that you will consider contributing to OmniAuth PayPal OAuth2 Strategy. Please read this short overview for some information about how to get started:
|
252
257
|
|
253
|
-
|
254
|
-
of this software and associated documentation files (the "Software"), to deal
|
255
|
-
in the Software without restriction, including without limitation the rights
|
256
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
257
|
-
copies of the Software, and to permit persons to whom the Software is
|
258
|
-
furnished to do so, subject to the following conditions:
|
258
|
+
[Learn more about contributing to this repository](https://github.com/jonhue/omniauth-paypal-oauth2/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/omniauth-paypal-oauth2/blob/master/CODE_OF_CONDUCT.md)
|
259
259
|
|
260
|
-
|
261
|
-
copies or substantial portions of the Software.
|
260
|
+
### Semantic Versioning
|
262
261
|
|
263
|
-
|
264
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
265
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
266
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
267
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
268
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
269
|
-
SOFTWARE.
|
262
|
+
omniauth-paypal-oauth2 follows Semantic Versioning 2.0 as defined at http://semver.org.
|
@@ -1,94 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'omniauth-oauth2'
|
2
4
|
|
3
5
|
module OmniAuth
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
module Strategies
|
7
|
+
class PaypalOauth2 < OmniAuth::Strategies::OAuth2
|
8
|
+
DEFAULT_SCOPE = 'email,profile'
|
9
|
+
DEFAULT_RESPONSE_TYPE = 'code'
|
10
|
+
SANDBOX_SITE = 'https://api.sandbox.paypal.com'
|
11
|
+
SANDBOX_AUTHORIZE_URL = 'https://www.sandbox.paypal.com/signin/authorize'
|
10
12
|
|
11
|
-
|
13
|
+
option :name, 'paypal_oauth2'
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
15
|
+
option :client_options,
|
16
|
+
site: 'https://api.paypal.com',
|
17
|
+
authorize_url: 'https://www.paypal.com/signin/authorize',
|
18
|
+
token_url: '/v1/identity/openidconnect/tokenservice',
|
19
|
+
setup: true
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
option :authorize_options, [:scope, :response_type]
|
22
|
+
option :provider_ignores_state, true
|
23
|
+
option :sandbox, false
|
23
24
|
|
24
|
-
|
25
|
+
# https://www.paypal.com/webapps/auth/identity/user/
|
26
|
+
# baCNqjGvIxzlbvDCSsfhN3IrQDtQtsVr79AwAjMxekw =>
|
27
|
+
# baCNqjGvIxzlbvDCSsfhN3IrQDtQtsVr79AwAjMxekw
|
28
|
+
uid { @parsed_uid ||= (%r{\/([^\/]+)\z}.match raw_info['user_id'])[1] }
|
25
29
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
30
|
+
info do
|
31
|
+
prune!(
|
32
|
+
'name' => raw_info['name'],
|
33
|
+
'email' => raw_info['email'],
|
34
|
+
'first_name' => raw_info['given_name'],
|
35
|
+
'last_name' => raw_info['family_name'],
|
36
|
+
'given_name' => raw_info['given_name'],
|
37
|
+
'family_name' => raw_info['family_name'],
|
38
|
+
'location' => (raw_info['address'] || {})['locality'],
|
39
|
+
'phone' => raw_info['phone_number']
|
40
|
+
)
|
41
|
+
end
|
38
42
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
43
|
+
extra do
|
44
|
+
prune!(
|
45
|
+
'account_type' => raw_info['account_type'],
|
46
|
+
'user_id' => raw_info['user_id'],
|
47
|
+
'address' => raw_info['address'],
|
48
|
+
'verified_account' => (raw_info['verified_account'] == 'true'),
|
49
|
+
'language' => raw_info['language'],
|
50
|
+
'zoneinfo' => raw_info['zoneinfo'],
|
51
|
+
'locale' => raw_info['locale'],
|
52
|
+
'account_creation_date' => raw_info['account_creation_date'],
|
53
|
+
'age_range' => raw_info['age_range'],
|
54
|
+
'birthday' => raw_info['birthday']
|
55
|
+
)
|
56
|
+
end
|
53
57
|
|
54
|
-
|
55
|
-
|
56
|
-
|
58
|
+
def callback_url
|
59
|
+
full_host + script_name + callback_path
|
60
|
+
end
|
57
61
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
def setup_phase
|
63
|
+
if options.sandbox
|
64
|
+
options.client_options[:site] = SANDBOX_SITE
|
65
|
+
options.client_options[:authorize_url] = SANDBOX_AUTHORIZE_URL
|
66
|
+
end
|
67
|
+
super
|
68
|
+
end
|
65
69
|
|
66
|
-
|
67
|
-
|
68
|
-
|
70
|
+
def raw_info
|
71
|
+
@raw_info ||= load_identity
|
72
|
+
end
|
69
73
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
74
|
+
def authorize_params
|
75
|
+
super.tap do |params|
|
76
|
+
params[:scope] ||= DEFAULT_SCOPE
|
77
|
+
params[:response_type] ||= DEFAULT_RESPONSE_TYPE
|
78
|
+
end
|
79
|
+
end
|
76
80
|
|
77
|
-
|
81
|
+
private
|
78
82
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
83
|
+
def load_identity
|
84
|
+
access_token.options[:mode] = :query
|
85
|
+
access_token.options[:param_name] = :access_token
|
86
|
+
access_token.options[:grant_type] = :authorization_code
|
87
|
+
access_token.get(
|
88
|
+
'/v1/identity/openidconnect/userinfo', params: { schema: 'openid' }
|
89
|
+
).parsed || {}
|
90
|
+
end
|
85
91
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
end
|
91
|
-
end
|
92
|
+
def prune!(hash)
|
93
|
+
hash.delete_if do |_, value|
|
94
|
+
prune!(value) if value.is_a?(Hash)
|
95
|
+
value.nil? || (value.respond_to?(:empty?) && value.empty?)
|
92
96
|
end
|
97
|
+
end
|
93
98
|
end
|
99
|
+
end
|
94
100
|
end
|
metadata
CHANGED
@@ -1,93 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-paypal-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
70
|
+
name: rubocop-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
82
|
+
version: '0'
|
83
83
|
description: A PayPal OAuth2 strategy for OmniAuth
|
84
|
-
email:
|
85
|
-
- jonas.huebotter@gmail.com
|
84
|
+
email: me@jonhue.me
|
86
85
|
executables: []
|
87
86
|
extensions: []
|
88
87
|
extra_rdoc_files: []
|
89
88
|
files:
|
90
|
-
- CHANGELOG.md
|
91
89
|
- LICENSE
|
92
90
|
- README.md
|
93
91
|
- lib/omniauth-paypal-oauth2.rb
|
@@ -106,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
104
|
requirements:
|
107
105
|
- - ">="
|
108
106
|
- !ruby/object:Gem::Version
|
109
|
-
version: '2.
|
107
|
+
version: '2.3'
|
110
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
109
|
requirements:
|
112
110
|
- - ">="
|
@@ -114,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
112
|
version: '0'
|
115
113
|
requirements: []
|
116
114
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.7.
|
115
|
+
rubygems_version: 2.7.6
|
118
116
|
signing_key:
|
119
117
|
specification_version: 4
|
120
118
|
summary: A PayPal OAuth2 strategy for OmniAuth
|