Skip to content

Commit 245e280

Browse files
docs: add gitlab self-managed example (#12295)
1 parent fb198ac commit 245e280

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/admin/external-auth.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://app.vssps.visualstudio.com/oauth2/author
108108
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://app.vssps.visualstudio.com/oauth2/token"
109109
```
110110

111+
### GitLab self-managed
112+
113+
GitLab self-managed requires the following environment variables:
114+
115+
```env
116+
CODER_EXTERNAL_AUTH_0_ID="primary-gitlab"
117+
CODER_EXTERNAL_AUTH_0_TYPE=gitlab
118+
# This value is the "Application ID"
119+
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
120+
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
121+
CODER_EXTERNAL_AUTH_0_VALIDATE_URL="https://gitlab.company.org/oauth/token/info"
122+
CODER_EXTERNAL_AUTH_0_AUTH_URL="https://gitlab.company.org/oauth/authorize"
123+
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://gitlab.company.org/oauth/token"
124+
CODER_EXTERNAL_AUTH_0_REGEX=gitlab\.company\.org
125+
```
126+
111127
### Self-managed git providers
112128

113129
Custom authentication and token URLs should be used for self-managed Git

0 commit comments

Comments
 (0)