Skip to content

Conversation

@feyruzb
Copy link
Collaborator

@feyruzb feyruzb commented Jul 10, 2025

Added the following:

  • Gitlab OAuth template.
  • Gitlab configuration file section.
  • Documentation regarding username selection options of Gitlab.

@feyruzb feyruzb self-assigned this Jul 10, 2025
@feyruzb feyruzb added enhancement 🌟 documentation 📖 Changes to documentation. python Pull requests that update Python code (used by DependaBot) labels Jul 10, 2025
@feyruzb feyruzb force-pushed the provider-gitlab-addition branch from 2ab1fb7 to 6a19711 Compare July 10, 2025 11:48
@LorandMarton
Copy link

LorandMarton commented Jul 14, 2025

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?

@feyruzb
Copy link
Collaborator Author

feyruzb commented Jul 14, 2025

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?

Hello, current configuration supports variables overriding, so if you specify variables mentioned below according to your custom GitLab instance in server_config file, it should work.

  • client_id
  • client_secret
  • authorization_url
  • token_url
  • user_info_url

It should look, like this:

image

@feyruzb feyruzb linked an issue Jul 17, 2025 that may be closed by this pull request
@lom279
Copy link

lom279 commented Nov 12, 2025

@bruntib @dkrupp @vodorok , this GitLab auth addition looks very useful - could it be considered for the next release?

else:
username = user_info.get("mail")
elif template == "gitlab/v1":
print(user_info)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, remove this print.

Copy link
Collaborator Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, remove this print.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@feyruzb feyruzb requested a review from bruntib November 19, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📖 Changes to documentation. enhancement 🌟 python Pull requests that update Python code (used by DependaBot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth addition of Gitlab authentication

4 participants