Sha256: 916e17346ac9f1051498c2697969ce5c968c9e6cdec2ef7cec07d563a562814f
Contents?: true
Size: 1.54 KB
Versions: 48
Compression:
Stored size: 1.54 KB
Contents
module RubyApp module Elements module Mobile module Documents module Authentication module OpenId require 'ruby_app/elements/mobile/documents/authentication/open_id/ax_authentication_document' class YahooAuthenticationDocument < RubyApp::Elements::Mobile::Documents::Authentication::OpenId::AxAuthenticationDocument template_path(:all, File.dirname(__FILE__)) def initialize(identifier = RubyApp::Elements::Mobile::Documents::Authentication::OpenId::YahooAuthenticationDocument.configuration.identifier) super(identifier) end def process_request(request) ax_request = ::OpenID::AX::FetchRequest.new ax_request.add(::OpenID::AX::AttrInfo.new(RubyApp::Elements::Mobile::Documents::Authentication::OpenId::YahooAuthenticationDocument.configuration.attributes.email, 'Email', true)) request.add_extension(ax_request) end def create_identity_from_response(response) ax_response = ::OpenID::AX::FetchResponse.from_success_response(response) if ax_response return self.create_identity_from_email(ax_response.data[RubyApp::Elements::Mobile::Documents::Authentication::OpenId::YahooAuthenticationDocument.configuration.attributes.email].first) else return super(response) end end end end end end end end end
Version data entries
48 entries across 48 versions & 1 rubygems