Class: Authlogic::Session::Base

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

Callbacks::METHODS

Method Summary

Methods included from PriorityRecord

#credentials=, included

Methods included from Validation

#attempted_record, #attempted_record=, #errors, #valid?

Methods included from Id

#credentials=, #id, included, #initialize

Methods included from Scopes

included

Methods included from Persistence

included

Methods included from PerishableToken

included

Methods included from MagicColumns

included

Methods included from Klass

included

Methods included from Existence

included

Methods included from BruteForceProtection

included

Methods included from ActiveRecordTrickery

included

Methods included from Activation

included

Methods included from MagicStates

included

Methods included from UnauthorizedRecord

#credentials, #credentials=, included

Methods included from Password

included

Methods included from HttpAuth

included

Methods included from Cookies

included

Methods included from Params

included

Methods included from Timeout

included

Methods included from Callbacks

included, #save_record

Methods included from Foundation

included