Open ID connect with GitLab
Dear Developers,
I am newbie. Currently I am developing coder-server for the team.
I refer to the coder-server setup from docker-compose at https://github.com/coder/coder/blob/main/docker-compose.yaml. https://docs.gitlab.com/ee/administration/auth/test_oidc_oauth.html#enable-oidcoauth-in-gitlab
https://coder.com/docs/admin/auth
I set the callback URL in GitLab App and the CODER_REDIRECTR_URI in Docker-compose to be the same "http://coder.aaa.bbb.ccc.com/"
But when I select Open ID connect, I log in to Gitlab. There is a problem
Regards,
Ben.Ng
Solution:Jump to solution
try changing your callback url to
https://<coder domain>/api/v2/users/oidc/callback
as per "Step 1: Set Redirect URI with your OIDC provider"13 Replies
<#1271050743247536148>
Category
Feature request
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Are you trying to have your developers login with GitLab using OIDC?
Yes sir, but I have issue about URI
could you send your full environment variables?
redact them of course
Dear @Phorcys , This is my setup in Application GitLab.
oh I meant Coder's environment variables but this is useful too!
This is my setup in Docker compose
(file .txt)
i will take a look in a moment
you can get rid of
CODER_OIDC_REDIRECT_URI
as it's not needed
though i can't see anything wrong about your configuration
alright i think i see the issueSolution
try changing your callback url to
https://<coder domain>/api/v2/users/oidc/callback
as per "Step 1: Set Redirect URI with your OIDC provider"Thank you sir. You are the best.
great! can we close the issue then?
Yes sir
@Phorcys closed the thread.