Cisco-Talos / FIRST-server

GNU General Public License v2.0
33 stars 20 forks source link

Google Authenticator problem. #16

Open jessie4736 opened 6 years ago

jessie4736 commented 6 years ago

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

demonduck commented 6 years ago

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

Web UI