authlogic-oauth 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/lib/authlogic_oauth/acts_as_authentic.rb +4 -0
- data/lib/authlogic_oauth/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
@@ -58,6 +58,8 @@ module AuthlogicOauth
|
|
58
58
|
|
59
59
|
def save(perform_validation = true, &block)
|
60
60
|
if perform_validation && block_given? && redirecting_to_oauth_server?
|
61
|
+
# Save attributes so they aren't lost during the authentication with the oauth server
|
62
|
+
session_class.controller.session[:authlogic_oauth_attributes] = attributes.reject!{|k, v| v.blank?}
|
61
63
|
redirect_to_oauth
|
62
64
|
return false
|
63
65
|
end
|
@@ -83,6 +85,8 @@ module AuthlogicOauth
|
|
83
85
|
end
|
84
86
|
|
85
87
|
def authenticate_with_oauth
|
88
|
+
# Restore any attributes which were saved before redirecting to the oauth server
|
89
|
+
self.attributes = session_class.controller.session.delete(:authlogic_oauth_attributes)
|
86
90
|
access_token = generate_access_token
|
87
91
|
|
88
92
|
self.oauth_token = access_token.token
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic-oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Allison
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-29 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|