gree / Orion

126 stars 22 forks source link

Authentication optional #1

Closed pcockwell closed 12 years ago

pcockwell commented 12 years ago

This allows us to implement other methods of authentication other than google oauth, and let the user decide on which to use. What still needs to be done is to remove the google oauth specific authentication code from models/user/usermodel.php and controllers/orion.php and modify controllers/authenticate.php so that it doesn't rely specifically on google oauth. In order to use no authentication, the config/orion.php AUTHENTICATION_METHOD variable should be an empty string. To use Google OAuth 2.0, for now, a non-empty string can be used, however in the future it should be 'OAUTH2'.