Module: AuthlogicConnect::Openid::Session::InstanceMethods
- Includes:
- Process
- Defined in:
- lib/authlogic_connect/openid/session.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#credentials=(value) ⇒ Object
Hooks into credentials so that you can pass an :openid_identifier key.
Methods included from Process
#attributes_to_save, #call_openid, #cleanup_openid_session, #complete_openid, #restore_attributes, #save_openid_session, #start_openid, #validate_by_openid
Methods included from Variables
#openid_identifier, #openid_provider
Methods included from AuthlogicConnect::Openid::State
#authenticating_with_openid?, #complete_openid?, #openid_identifier?, #openid_provider?, #openid_request?, #openid_response?, #start_openid?, #using_openid?, #validate_password_with_openid?
Class Method Details
.included(klass) ⇒ Object
14 15 16 17 18 |
# File 'lib/authlogic_connect/openid/session.rb', line 14 def self.included(klass) klass.class_eval do validate :validate_by_openid, :if => :authenticating_with_openid? end end |
Instance Method Details
#credentials=(value) ⇒ Object
Hooks into credentials so that you can pass an :openid_identifier key.
21 22 23 24 25 |
# File 'lib/authlogic_connect/openid/session.rb', line 21 def credentials=(value) super values = value.is_a?(Array) ? value : [value] hash = values.first.is_a?(Hash) ? values.first.with_indifferent_access : nil end |