omniauth-stripe-connect 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Omniauth::StripeConnect
1
+ # OmniAuth::StripeConnect
2
2
 
3
3
  Stripe Connect OAuth2 Strategy for OmniAuth 1.0.
4
4
 
@@ -9,7 +9,7 @@ module OmniAuth
9
9
  :site => 'https://connect.stripe.com'
10
10
  }
11
11
 
12
- option :authorize_options, [:scope]
12
+ option :authorize_options, [:scope, :stripe_landing]
13
13
 
14
14
  uid { raw_info[:stripe_user_id] }
15
15
 
@@ -31,6 +31,10 @@ module OmniAuth
31
31
  @raw_info ||= deep_symbolize(access_token.params)
32
32
  end
33
33
 
34
+ def request_phase
35
+ redirect client.auth_code.authorize_url({:redirect_uri => callback_url}.merge(authorize_params.merge(request.params)))
36
+ end
37
+
34
38
  def build_access_token
35
39
  headers = {
36
40
  :headers => {
@@ -1,5 +1,5 @@
1
- module Omniauth
1
+ module OmniAuth
2
2
  module StripeConnect
3
- VERSION = "2.0.1"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ Read the Stripe Connect docs for more details: https://stripe.com/docs/connect
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.name = "omniauth-stripe-connect"
18
18
  gem.require_paths = ["lib"]
19
- gem.version = Omniauth::StripeConnect::VERSION
19
+ gem.version = OmniAuth::StripeConnect::VERSION
20
20
 
21
21
  gem.add_dependency 'omniauth', '~> 1.0'
22
22
  gem.add_dependency 'omniauth-oauth2', '>= 1.0.3'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-stripe-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-25 00:00:00.000000000 Z
12
+ date: 2012-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  segments:
76
76
  - 0
77
- hash: -2862897729654072318
77
+ hash: -2405039506946345451
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  segments:
85
85
  - 0
86
- hash: -2862897729654072318
86
+ hash: -2405039506946345451
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.24