Pass any AX response to the callback along with the SReg response
authorTom Hughes <tom@compton.nu>
Sun, 3 Oct 2010 13:24:45 +0000 (14:24 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 3 Oct 2010 13:24:45 +0000 (14:24 +0100)
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb

index b355049..ed875cd 100644 (file)
@@ -112,7 +112,8 @@ module OpenIdAuthentication
       case response.status
       when OpenID::Consumer::SUCCESS
         yield Result[:successful], identifier,
-          OpenID::SReg::Response.from_success_response(response)
+          OpenID::SReg::Response.from_success_response(response),
+          OpenID::AX::FetchResponse.from_success_response(response)
       when :missing
         yield Result[:missing], identifier, nil
       when :invalid