Google Authenticator problem.
Opened this issue · 1 comments
Hello,
Is there any way to disuse Google Authenticator, we are in China, you know that google is forbid in China,
google cannot be accessed directly, unless using a proxy.
Best regards.
Jessie Lee
It is possible to alter the source to use another OAuth service for authentication. The code currently in the dev branch includes a user management python shell to allow for local user creation and management, however, it is still being tested and developed. This might be the easiest/simplest way right now, but since it is still being developed that are a couple of bugs that could be encountered.
If you do update the FIRST to use another OAuth service please send me a link to the code. If you integrate or change the OAuth to be modular then please submit a pull request so everyone can benefit from the updates.
The code for handling OAuth happens in a couple of places. There is Template (web UI), application layer logic (django python), and the database. I believe the database shouldn't need to be altered since it was crafted in a way to allow future addition of different OAuth services.
Application Layer logic
- https://github.com/vrtadmin/FIRST-server/blob/master/server/www/urls.py
- Contains the redirect URLs for handling registration (
views.register
), logging in (views.login
) and OAuth service redirection (view.oauth
)
- Contains the redirect URLs for handling registration (
- Login
- OAuth Redirection
- Registraion
- Class handling of authentication for FIRST
Web UI
- https://github.com/vrtadmin/FIRST-server/blob/be5db92c309bf52898fea0d0f2abbc6e96284f98/server/www/templates/www/base_site.html#L557-L561
- Will need to be updated to contain the OAuth service you to use.