Implementation of Oauth of Github, Google and Microsoft
fixes #4160
The right way it should look after logging in
new added button to log in with github
Changes:
- added new buttons on login page for GitHub,Google Oauth authorization
- added functions createLink and getOAuthToken into authentication.thrift
- changed the current version of thrift API from 6.58.0 to 6.59.0
- imported OAuth2Session in client.py
- added a case for Oauth authorization in login_user function
- added definition for thrift
- imported OAuth2Session in authentication.py
- added code to load the authentication configuration from
- added oauth method for authentication in performLogin function
- added oauth case in session manager
- added fields for server_config file in the server_config.json
- added oauth cases in auth.js
- added reusable providers dict to server config to allow easier adding of new oauth providers
- create a new function get_oauth_config for getting different providers configs in session manager
- added documentation for configuration
This looks like a real nice feature! Any update?
Have you considered adding GitLab authentication?
GitLab is not in focus for us, currently. However, the infrastructure is prepared for it.
@bruntib I might give GitLab authentication a shot and open a merge request if things go well - if that’s okay with you.
Sure, all contributions are welcome! Thank you in advance!
@LorandMarton Hello, I will add Gitlab authentication in next month. I'm currently busy, preparing for my thesis defense.