exvo-auth 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,14 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exvo-auth (0.9.10)
5
- activemodel (> 3.0.0)
4
+ exvo-auth (0.10.1)
5
+ actionpack (~> 3.0.0)
6
+ activemodel (~> 3.0.0)
6
7
  httparty (~> 0.6.1)
7
8
  oa-oauth (~> 0.0.4)
8
9
 
9
10
  GEM
10
11
  remote: http://rubygems.org/
11
12
  specs:
13
+ abstract (1.0.0)
14
+ actionpack (3.0.3)
15
+ activemodel (= 3.0.3)
16
+ activesupport (= 3.0.3)
17
+ builder (~> 2.1.2)
18
+ erubis (~> 2.6.6)
19
+ i18n (~> 0.4)
20
+ rack (~> 1.2.1)
21
+ rack-mount (~> 0.6.13)
22
+ rack-test (~> 0.5.6)
23
+ tzinfo (~> 0.3.23)
12
24
  activemodel (3.0.3)
13
25
  activesupport (= 3.0.3)
14
26
  builder (~> 2.1.2)
@@ -17,6 +29,8 @@ GEM
17
29
  addressable (2.2.2)
18
30
  builder (2.1.2)
19
31
  crack (0.1.8)
32
+ erubis (2.6.6)
33
+ abstract (>= 1.0.0)
20
34
  faraday (0.4.6)
21
35
  addressable (>= 2.1.1)
22
36
  rack (>= 1.0.1)
@@ -40,14 +54,20 @@ GEM
40
54
  faraday (~> 0.4.1)
41
55
  multi_json (>= 0.0.4)
42
56
  rack (1.2.1)
57
+ rack-mount (0.6.13)
58
+ rack (>= 1.0.0)
59
+ rack-test (0.5.6)
60
+ rack (>= 1.0)
43
61
  rake (0.8.7)
44
62
  test-unit (2.1.1)
63
+ tzinfo (0.3.23)
45
64
 
46
65
  PLATFORMS
47
66
  ruby
48
67
 
49
68
  DEPENDENCIES
50
- activemodel (> 3.0.0)
69
+ actionpack (~> 3.0.0)
70
+ activemodel (~> 3.0.0)
51
71
  bundler (~> 1.0.0)
52
72
  exvo-auth!
53
73
  httparty (~> 0.6.1)
data/README CHANGED
@@ -67,8 +67,9 @@ In short: you get params[:auth]. Do what you want to do with it: store the data,
67
67
 
68
68
  6. Sign up and sign in paths for use in links.
69
69
 
70
- sign in path: "/auth/interactive"
71
- sign up path: "/auth/interactive?x_sign_up=true" # this is OAuth2 custom param
70
+ sign in path: "/auth/interactive"
71
+ sign up path: "/auth/interactive?x_sign_up=true" # this is OAuth2 custom param
72
+ sign in path with a return address: "/auth/interactive?state=url" # using OAuth2 state param
72
73
 
73
74
  You have a handy methods available in controllers (and views in Rails): sign_in_path and sign_up_path.
74
75
 
@@ -104,6 +105,8 @@ If scopes are empty, then provider app should not present any resources to consu
104
105
 
105
106
  before_filter {|c| c.authenticate_app_in_scope!("payments") }
106
107
 
108
+ In provider controller which is just a fancy name for API controller you can use #current_app_id method to get the app_id of the app connecting.
109
+
107
110
 
108
111
  Dejavu - replay non-GET requests after authentication redirects
109
112
  ===============================================================
@@ -21,6 +21,8 @@ module ExvoAuth::Controllers::Base
21
21
 
22
22
  url = if params[:state] == "popup"
23
23
  ExvoAuth::Config.host + "/close_popup.html"
24
+ elsif params[:state] # if not popup then an url
25
+ params[:state]
24
26
  else
25
27
  request_replay_url || "/"
26
28
  end
@@ -5,7 +5,7 @@ class ExvoAuth::Strategies::Interactive < ExvoAuth::Strategies::Base
5
5
 
6
6
  def request_phase(options = {})
7
7
  super(unicorns_and_rainbows(
8
- :scope => request["scope"],
8
+ :scope => request["scope"],
9
9
  :state => request["state"],
10
10
  :x_sign_up => request["x_sign_up"]
11
11
  ))
@@ -1,3 +1,3 @@
1
1
  module ExvoAuth
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 1
10
- version: 0.10.1
9
+ - 2
10
+ version: 0.10.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacek Becela
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-10 00:00:00 +01:00
18
+ date: 2010-12-13 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency