Changes

Jump to: navigation, search

Auth Module

996 bytes added, 16:17, 19 June 2012
no edit summary
[[Category:Umlaut]]
 
=WARNING: This is Outdated Documentation!!!!=
 
'''THIS IS OUTDATED DOCUMENTATION''' See new Umlaut documentation at http://github.com/team-umlaut/umlaut/wiki
---------
 
== 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].'
=== Auth Module Example ===
AuthPDS was developed at NYU as an example of generating a plugin and populating the stub methods provided.
 
At NYU we're currently using the Auth module in our holdings table to offer request functionality based on "patron status". We display a request button, if the patron has the appropriate status to be able to request/page items and use a custom controller to provide this functionality seamlessly. Screenshots of this functionality can be seen below.
 
==== lib/auth/local/auth_pds.rb ====
The AuthPDS module gets mixed in with the Session module to log in via PDS (customized for NYU). It implements the following callback functions:
}
</pre>
==== Screenshots of Request Functionality ====
===== Not logged in, no request =====
No request button because generally patrons can't request available items.
 
[[Image:Umlaut_no_request.png]]
 
===== Logged in, request =====
Now the request button appears because I have permission to request available items.
[[Image:Umlaut_request.png]]
 
===== Pretty jQuery modal dialog =====
You get the modal dialog upon clicking the request button
[[Image:Umlaut_request_modal.png]]

Navigation menu