Class | Autumn::Authentication::Base |
In: |
lib/autumn/authentication.rb
|
Parent: | Object |
The basic subclass for all authenticators. If you wish to write your own authenticator, you must subclass this class. You must at a minimum override the authenticate method. You should also override the initialize method if you need to store any options or other data for later use.
The authentication module will become a stem listener, so see Autumn::Stem#add_listener for information on other methods you can implement.
Returns true if the user is authorized, false if not. sender is a sender hash as defined in the Autumn::Stem docs.