public
Description: OpenID authentication plugin
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/open_id_authentication.git
Return the response.display_identifier instead of claim_id to the application.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
nbibler (author)
Mon May 05 13:35:33 -0700 2008
josh (committer)
Mon May 05 13:35:33 -0700 2008
commit  1fb6668e25d7b4a0c4f9bd5749ca8ea54878eda3
tree    4768b667cb9c7fae0a9cc45bcfff6c9f975f4e6d
parent  d9d6e6ac85e37eedd40b97fa1f7cf25645038a19
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Return open_id_response.display_identifier to the application instead of .endpoints.claimed_id. [nbibler]
0
+
0
 * Add Timeout protection [Rick]
0
 
0
 * An invalid identity url passed through authenticate_with_open_id will no longer raise an InvalidOpenId exception. Instead it will return Result[:missing] to the completion block.
...
105
106
107
108
 
109
110
111
...
105
106
107
 
108
109
110
111
0
@@ -105,7 +105,7 @@ module OpenIdAuthentication
0
       params_with_path = params.reject { |key, value| request.path_parameters[key] }
0
       params_with_path.delete(:format)
0
       open_id_response = timeout_protection_from_identity_server { open_id_consumer.complete(params_with_path, requested_url) }
0
-      identity_url     = normalize_url(open_id_response.endpoint.claimed_id) if open_id_response.endpoint.claimed_id
0
+      identity_url     = normalize_url(open_id_response.display_identifier) if open_id_response.display_identifier
0
 
0
       case open_id_response.status
0
       when OpenID::Consumer::SUCCESS

Comments