gree/Orion — pull request #3 by pcockwell (2012-09-13 19:34:28+00:00)
Title: Modularized Authentication Methodology

The authentication has been modularized such that adding new methods is as simple as adding a new helper and filling out a couple of functions. Still need to add some documentation on the specifics, but it is fairly simple. Add a new file to application/helpers called 'method_authentication_helper.php' where 'method' is the new authentication method. Next, complete the auth_get_user(), auth_login(), and auth_logout() and, if needed, auth_callback() functions which can for the most part be copied from the googoauth2_authentication_helper and then change them as needed to implement the new authentication method.

Both the noauth and googoauth2 methods currently work. For noauth, in order to make any changes, a user must hit the log in button. They will be logged in immediately with all permissions without needing any information. For googoauth2, the old system of tiered permissions works.

I've chosen not to include the changes to the config that setup the graphite server and my google oauth2 testing login, but it does work.