omniauth-paypal-oauth2 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CNAME +1 -0
- data/README.md +0 -4
- data/_config.yml +1 -0
- data/lib/omniauth/strategies/paypal_oauth2.rb +2 -2
- data/omniauth-paypal-oauth2.gemspec +2 -2
- data/spec/omniauth/strategies/paypal_spec.rb +4 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b007aef77c717793786b58de2e91d263c31663a2
|
4
|
+
data.tar.gz: d1b44cf1261d9e381f976e4b00d5316e0ad42840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6314646cc1cf649cd6e1020499ec72b395ce034bcd7809937a5be2d2e4765e11100082692082f53d4d998628e8009097e448d2f916e8bb11decdbccf21699cf
|
7
|
+
data.tar.gz: 24ac1d6d0e8fd7acf732447e1ac94c0b965c0ec3f2090c092034532195e6e8c9e800e892a1fd5ff50400a514a79bf4a33bb3f3192baa42a830aeae17f422b1a1
|
data/CNAME
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
omniauth-paypal-oauth2.jonhue.me
|
data/README.md
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
[![Gem Version](https://badge.fury.io/rb/omniauth-google-oauth2.svg)](https://badge.fury.io/rb/omniauth-google-oauth2)
|
2
|
-
[![Build Status](https://travis-ci.org/zquestz/omniauth-google-oauth2.svg)](https://travis-ci.org/zquestz/omniauth-google-oauth2)
|
3
|
-
|
4
|
-
|
5
1
|
# OmniAuth PayPal OAuth2 Strategy
|
6
2
|
|
7
3
|
Strategy to authenticate with PayPal via OmniAuth.
|
data/_config.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
theme: jekyll-theme-minimal
|
@@ -3,7 +3,7 @@ require 'omniauth-oauth2'
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
5
5
|
class PayPalOauth2 < OmniAuth::Strategies::OAuth2
|
6
|
-
DEFAULT_SCOPE = "
|
6
|
+
DEFAULT_SCOPE = "email,profile"
|
7
7
|
DEFAULT_RESPONSE_TYPE = "code"
|
8
8
|
SANDBOX_SITE = "https://api.sandbox.paypal.com"
|
9
9
|
SANDBOX_AUTHORIZE_URL = 'https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize'
|
@@ -87,4 +87,4 @@ module OmniAuth
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
OmniAuth.config.add_camelization '
|
90
|
+
OmniAuth.config.add_camelization '', 'PayPalOauth2'
|
@@ -4,11 +4,11 @@ require 'omniauth/paypal_oauth2/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'omniauth-paypal-oauth2'
|
7
|
-
s.version = '1.4.
|
7
|
+
s.version = '1.4.4'
|
8
8
|
s.authors = ['Jonas Hübotter']
|
9
9
|
s.email = ['jonas.huebotter@gmail.com']
|
10
10
|
s.summary = 'A PayPal OAuth2 strategy for OmniAuth 1.x'
|
11
|
-
s.homepage = '
|
11
|
+
s.homepage = 'http://omniauth-paypal-oauth2.jonhue.me'
|
12
12
|
s.license = 'MIT'
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require 'omniauth-paypal'
|
2
|
+
require 'omniauth-paypal-oauth2'
|
3
3
|
|
4
|
-
describe OmniAuth::Strategies::
|
4
|
+
describe OmniAuth::Strategies::PayPalOauth2 do
|
5
5
|
subject do
|
6
|
-
OmniAuth::Strategies::
|
6
|
+
OmniAuth::Strategies::PayPalOauth2.new(nil, @options || {})
|
7
7
|
end
|
8
8
|
|
9
9
|
it_should_behave_like 'an oauth2 strategy'
|
@@ -43,7 +43,7 @@ describe OmniAuth::Strategies::PayPal do
|
|
43
43
|
|
44
44
|
describe '#callback_path' do
|
45
45
|
it "has the correct callback path" do
|
46
|
-
expect(subject.callback_path).to eq('/auth/
|
46
|
+
expect(subject.callback_path).to eq('/auth/paypal_oauth2/callback')
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
@@ -60,11 +60,13 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
+
- CNAME
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
65
66
|
- LICENSE
|
66
67
|
- README.md
|
67
68
|
- Rakefile
|
69
|
+
- _config.yml
|
68
70
|
- lib/omniauth-paypal-oauth2.rb
|
69
71
|
- lib/omniauth/paypal_oauth2.rb
|
70
72
|
- lib/omniauth/paypal_oauth2/version.rb
|
@@ -73,7 +75,7 @@ files:
|
|
73
75
|
- spec/omniauth/strategies/paypal_spec.rb
|
74
76
|
- spec/spec_helper.rb
|
75
77
|
- spec/support/shared_examples.rb
|
76
|
-
homepage:
|
78
|
+
homepage: http://omniauth-paypal-oauth2.jonhue.me
|
77
79
|
licenses:
|
78
80
|
- MIT
|
79
81
|
metadata: {}
|