Sha256: 73d7078c0378bb2a158f2b63d2126a43eefb2f4aac4fe79e0f61c74eb8594081
Contents?: true
Size: 1.17 KB
Versions: 8
Compression:
Stored size: 1.17 KB
Contents
require 'rubygems' require 'bundler/setup' require 'openid/extensions/sreg' module RubyApp module Elements module Pages module Authentication module OpenId require 'ruby_app' require 'ruby_app/elements/pages/authentication/open_id/email_authentication_page' class SregAuthenticationPage < RubyApp::Elements::Pages::Authentication::OpenId::EmailAuthenticationPage template_path(:all, File.dirname(__FILE__)) def initialize(identifier) super(identifier) end def process_request(request) sreg_request = ::OpenID::SReg::Request.new sreg_request.request_fields(['email'], true) request.add_extension(sreg_request) end def create_identity_from_response(response) sreg_response = ::OpenID::SReg::Response.from_success_response(response) unless sreg_response.empty? self.create_identity_from_email(sreg_response.data['email']) else super(response) end end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems