Class: Authlogic::Session::Base
- Inherits:
-
Object
- Object
- Authlogic::Session::Base
- Includes:
- Authlogic::Session, Activation, ActiveRecordTrickery, BruteForceProtection, Callbacks, Cookies, Existence, Foundation, HttpAuth, Id, Klass, MagicColumns, MagicStates, Params, Password, PerishableToken, Persistence, PriorityRecord, Scopes, Timeout, UnauthorizedRecord, Validation
- Defined in:
- lib/authlogic/session/base.rb
Overview
This is the most important class in Authlogic. You will inherit this class for your own eg. ‘UserSession`.
Code is organized topically. Each topic is represented by a module. So, to learn about password-based authentication, read the ‘Password` module.
It is common for methods (.initialize and #credentials=, for example) to be implemented in multiple mixins. Those methods will call ‘super`, so the order of `include`s here is important.
Also, to fully understand such a method (like #credentials=) you will need to mentally combine all of its definitions. This is perhaps the primary disadvantage of topical organization using modules.
Constant Summary
Constants included from Cookies
Cookies::VALID_SAME_SITE_VALUES
Constants included from Callbacks
Method Summary
Methods included from PriorityRecord
Methods included from Validation
#attempted_record, #attempted_record=, #errors, #valid?
Methods included from Id
#credentials=, #id, included, #initialize
Methods included from Scopes
Methods included from Persistence
Methods included from PerishableToken
Methods included from MagicColumns
Methods included from Klass
Methods included from Existence
Methods included from BruteForceProtection
Methods included from ActiveRecordTrickery
Methods included from Activation
Methods included from MagicStates
Methods included from UnauthorizedRecord
#credentials, #credentials=, included