Skip to content

How to setup gitlab auth #2032

Answered by josephsnyder
fspindle asked this question in Q&A
Feb 14, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@fspindle, thanks for the report. I can replicate what you're experiencing locally.

It seems like the fix is to specify the redirect URI in the configuration too. When I added an .env entry for GITLAB_REDIRECT_URI which matched the value that I set when registering the user-owned application, I didn't receive the error any more. Your block of .env would look like this:

GITLAB_ENABLE=true
GITLAB_CLIENT_ID=de1bfc...
GITLAB_CLIENT_SECRET=gloas-...
GITLAB_DOMAIN=https://gitlab.com/
GITLAB_REDIRECT_URI=https://my-cdash.server.fr/auth/gitlab/callback

Please give that a try and let me know if you can log in. I'll do some digging on my end to determine why Socialite needs the redirect_uri in the a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@josephsnyder
Comment options

@fspindle
Comment options

Answer selected by williamjallen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants