omniauth-passport 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@ require 'omniauth-oauth2'
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
5
5
|
class Passport < OmniAuth::Strategies::OAuth2
|
6
|
+
PARAMS = %w[name email background_colour tagline header_image background_image]
|
7
|
+
|
6
8
|
option :name, 'passport'
|
7
9
|
option :client_options, {:site => 'https://passport.everydayhero.com'}
|
8
10
|
|
@@ -17,8 +19,8 @@ module OmniAuth
|
|
17
19
|
end
|
18
20
|
|
19
21
|
def request_phase
|
20
|
-
|
21
|
-
options.authorize_params.update
|
22
|
+
params = request.params.slice *PARAMS
|
23
|
+
options.authorize_params.update params
|
22
24
|
|
23
25
|
super
|
24
26
|
end
|
data/omniauth-passport.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-passport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth-oauth2
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
22
|
+
version: 1.1.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 1.
|
30
|
+
version: 1.1.1
|
31
31
|
description: OmniAuth strategy for Everyday Hero's Passport
|
32
32
|
email:
|
33
33
|
- timc@everydayhero.com.au
|
@@ -70,4 +70,3 @@ signing_key:
|
|
70
70
|
specification_version: 3
|
71
71
|
summary: OmniAuth strategy for Everyday Hero's Passport
|
72
72
|
test_files: []
|
73
|
-
has_rdoc:
|