From 245e280531a9cd685962e7ae0aaedb1b8946980b Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Sun, 25 Feb 2024 07:11:13 -0800 Subject: [PATCH] docs: add gitlab self-managed example (#12295) --- docs/admin/external-auth.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md index 4c1b205c1f..cab2cc0a5a 100644 --- a/docs/admin/external-auth.md +++ b/docs/admin/external-auth.md @@ -108,6 +108,22 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://app.vssps.visualstudio.com/oauth2/author CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://app.vssps.visualstudio.com/oauth2/token" ``` +### GitLab self-managed + +GitLab self-managed requires the following environment variables: + +```env +CODER_EXTERNAL_AUTH_0_ID="primary-gitlab" +CODER_EXTERNAL_AUTH_0_TYPE=gitlab +# This value is the "Application ID" +CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx +CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx +CODER_EXTERNAL_AUTH_0_VALIDATE_URL="https://gitlab.company.org/oauth/token/info" +CODER_EXTERNAL_AUTH_0_AUTH_URL="https://gitlab.company.org/oauth/authorize" +CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://gitlab.company.org/oauth/token" +CODER_EXTERNAL_AUTH_0_REGEX=gitlab\.company\.org +``` + ### Self-managed git providers Custom authentication and token URLs should be used for self-managed Git