Module: AuthlogicCrowd::Session::Config

Defined in:
lib/authlogic_crowd/session.rb

Overview

Configuration for the crowd feature.

Instance Method Summary collapse

Instance Method Details

#auto_register(value = true) ⇒ Object Also known as: auto_register=

Add this in your Session object if you need to disable auto-registration via crowd



44
45
46
# File 'lib/authlogic_crowd/session.rb', line 44

def auto_register(value=true)
  auto_register_value(value)
end

#auto_register_value(value = nil) ⇒ Object



48
49
50
# File 'lib/authlogic_crowd/session.rb', line 48

def auto_register_value(value=nil)
  rw_config(:auto_register,value,true)
end

#crowd_auth_every(value = nil) ⇒ Object Also known as: crowd_auth_every=

How often should Crowd re-authorize (in seconds). Default is 0 (always re-authorize)



35
36
37
# File 'lib/authlogic_crowd/session.rb', line 35

def crowd_auth_every(value = nil)
  rw_config(:crowd_auth_every, value, 0)
end

#explicit_login_from_crowd_token(value = nil) ⇒ Object Also known as: explicit_login_from_crowd_token=

Should login via a crowd token be treated as an explicit login? If true, explicit login callbacks (before,after_create,update,save) will be triggered when a user is persisted. If false, the user is persisted but explicit login callbacks do not fire. Default false



58
59
60
# File 'lib/authlogic_crowd/session.rb', line 58

def (value=nil)
  rw_config(:explicit_login_from_crowd_token, value, false)
end