-
Notifications
You must be signed in to change notification settings - Fork 440
Addition of Gitlab authentication. #4624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
2ab1fb7 to
6a19711
Compare
|
Hi! Thanks for adding support for GitLab authentication - much appreciated! Quick question: Will this also work with self-hosted GitLab instances? If not, would it be possible to make the template configurable (e.g., allowing a custom domain) to support self-hosted GitLab as well? |
| else: | ||
| username = user_info.get("mail") | ||
| elif template == "gitlab/v1": | ||
| print(user_info) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove this print.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| if username_key == "username": | ||
| username = user_info.get("preferred_username") | ||
| elif username_key == "email": | ||
| print(user_info) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, remove this print.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.

Added the following: