omniauth-stripe-platform 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -37,6 +37,43 @@ Your `STRIPE_PLATFORM_KEY` is application-specific and your `STRIPE_SECRET` is a
37
37
 
38
38
  Then you can hit `/auth/stripe_platform`
39
39
 
40
+ ## Auth Hash
41
+
42
+ Here is an example of the Auth Hash you get back from calling `request.env['omniauth.auth']`:
43
+
44
+ ```ruby
45
+ {
46
+ "provider"=>"stripe_platform",
47
+ "uid"=>"<STRIPE_USER_ID>",
48
+ "info"=>
49
+ {
50
+ "scope"=>"read_only", # or "read_write"
51
+ "livemode"=>false,
52
+ "access_token"=>nil,
53
+ "expires_in"=>nil,
54
+ "stripe_publishable_key"=>"<STRIPE_PUBLISHABLE_KEY>"
55
+ },
56
+ "credentials"=>
57
+ {
58
+ "token"=>"<TOKEN>",
59
+ "refresh_token"=>"REFRESH_TOKEN",
60
+ "expires_at"=>1341608127,
61
+ "expires"=>true
62
+ },
63
+ "extra"=>
64
+ {
65
+ "raw_info"=>
66
+ {
67
+ "scope"=>"read_only",
68
+ "livemode"=>false,
69
+ "token_type"=>"bearer",
70
+ "stripe_user_id"=>"<STRIPE_USER_ID>",
71
+ "stripe_publishable_key"=>"<STRIPE_PUBLISHABLE_KEY>"
72
+ }
73
+ }
74
+ }
75
+ ```
76
+
40
77
  ## Contributing
41
78
 
42
79
  1. Fork it
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module StripePlatform
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -16,7 +16,6 @@ module OmniAuth
16
16
  :scope => raw_info[:scope],
17
17
  :livemode => raw_info[:livemode],
18
18
  :access_token => raw_info[:access_token],
19
- :expires_in => raw_info[:expires_in],
20
19
  :stripe_publishable_key => raw_info[:stripe_publishable_key]
21
20
  }
22
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-stripe-platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-07-05 00:00:00.000000000 Z
12
+ date: 2012-07-17 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: 813375254200429463
77
+ hash: 2554071023533532283
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: 813375254200429463
86
+ hash: 2554071023533532283
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.24