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
- branding_params = request.params.slice('background_colour', 'tagline', 'header_image', 'background_image')
21
- options.authorize_params.update branding_params
22
+ params = request.params.slice *PARAMS
23
+ options.authorize_params.update params
22
24
 
23
25
  super
24
26
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Passport
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -15,5 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Omniauth::Passport::VERSION
17
17
 
18
- gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.0.2'
18
+ gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1'
19
19
  end
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.8
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-02-22 00:00:00.000000000 Z
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.0.2
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.0.2
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: