exvo-auth 0.11.0 → 0.11.1
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/lib/exvo_auth/controllers/base.rb +3 -3
- data/lib/exvo_auth/version.rb +1 -1
- metadata +3 -3
@@ -17,7 +17,7 @@ module ExvoAuth::Controllers::Base
|
|
17
17
|
|
18
18
|
# Usually this method is called from your sessions#create.
|
19
19
|
def sign_in_and_redirect!
|
20
|
-
session[:
|
20
|
+
session[:user_uid] = request.env["rack.request.query_hash"]["auth"]["uid"]
|
21
21
|
|
22
22
|
url = if params[:state] == "popup"
|
23
23
|
ExvoAuth::Config.host + "/close_popup.html"
|
@@ -33,7 +33,7 @@ module ExvoAuth::Controllers::Base
|
|
33
33
|
# Redirect to sign_out_url, signs out and redirects back to "/" (by default).
|
34
34
|
# Usuallly this method is called from your sessions#destroy.
|
35
35
|
def sign_out_and_redirect!(return_to = "/")
|
36
|
-
session.delete(:
|
36
|
+
session.delete(:user_uid)
|
37
37
|
@current_user = nil
|
38
38
|
redirect_to sign_out_url(return_to)
|
39
39
|
end
|
@@ -63,7 +63,7 @@ module ExvoAuth::Controllers::Base
|
|
63
63
|
|
64
64
|
def current_user
|
65
65
|
return @current_user if defined?(@current_user)
|
66
|
-
@current_user = session[:
|
66
|
+
@current_user = session[:user_uid] && find_or_create_user_by_uid(session[:user_uid])
|
67
67
|
end
|
68
68
|
|
69
69
|
def current_app_id
|
data/lib/exvo_auth/version.rb
CHANGED
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:
|
4
|
+
hash: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
9
|
+
- 1
|
10
|
+
version: 0.11.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jacek Becela
|