Updating for most recent version.
Umlaut Auth Module (Developer Notes) ==
The Auth module extends functionality available from the [Authlogic|http://github.com/binarylogic/authlogic] (version 2.1.0) gem and included in the lib directory based on the [Authlogic OpenID add-on|http://github.com/binarylogic/authlogic_openid].
Several core Umlaut files were updated in order to develop the Auth module.
==== app/controller/application.rb ====
application controller was updated to filter passwords and provide two methods for accessing the current user session and the current user. The method current_user_session (aliased as has_logged_in_user) returns nil if no user session has been established . The method current_user (aliased as logged_in_user) return either nil or the current logged in user.
==== app/controllers/user_sessions_controller.rb ====
user sessions controller manages the routing of user session requests. Three methods are available:# new - renders the login screen or redirects to external login screen# validate - validates the user upon login# destroy - processes logout
==== app/controllers/users_controller.rb ====
users controller manages the routing of user related requests . Two methods are available:# edit (also called from show) - renders the user preferences screen .# update - processes updates to user preferences .
==== app/models/user ====
==== app/views/user_sessions/new ====
The default login screen
==== app/views/users/edit ====
The default user preferences screen. Users can update mobile phone numbers and the like
==== config/environment.rb ====
Added authlogic gem:
==== db/schema.rb ====
Modified the user table to use with authlogic. Included column for mobile phone
and user attributes.
UmlautAuth Plugin ===The following files makeup the UmlautAuth module to extend the functionality of Authlogic for our purposes. They could probably be moved into the UserSession module, but may be useful as a template for further localization.
==== vendor/plugins/umlaut_auth/lib/acts_as_authentic.rb ====
Extends the authlogic user model to ignore passwords, reset_persistence_token when the username changes, manage stale data (via expiration date), and handle user attributes hash.