msjit / testcasedb

TestCaseDB - Web based test case management
MIT License
40 stars 18 forks source link

Added google authentication feature #9

Closed glebe closed 10 years ago

glebe commented 10 years ago

Keys stored at setting are configured for localhost. To create a new app, use google dev console:

  1. https://code.google.com/apis/console/b/0/?noredirect on the left panel, create new app (use old style console)
  2. Choose it, select "API settings", Create OAuth2.0 client ID (https://www.dropbox.com/s/jbo8pqwvsbxlw5u/Screenshot%202014-06-05%2018.59.13.png) https://www.dropbox.com/s/59crh8gs7zxonpl/Screenshot%202014-06-05%2018.59.52.png
  3. Copy ClientID, secret Set Redirect URI to <yourhost>/auth/google_oauth2/callback and javascript origins : <yourhost>

Then update Settings accordingly

NB: auth should be added in my settings screen in order for the user to be able to login with it. New user won't be created based on google auth because there is no signup process implemented, so I decided not to change it.

kirantpatil commented 10 years ago

Hello @glebe,

Please add the support for signing first time users and there is no way they can access any feature, since Administrator has to assign user to access the product.

kirantpatil commented 10 years ago

@joffems,

May I know when will this PR merged in to master?

Thanks.