Skip to content

Commit 20dfd34

Browse files
docs: add gitlab self-managed example
Add missing example for configuring gitlab self hosted
1 parent fb198ac commit 20dfd34

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/admin/external-auth.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,21 @@ 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+
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
119+
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
120+
CODER_EXTERNAL_AUTH_0_VALIDATE_URL="https://gitlab.company.org/oauth/token/info"
121+
CODER_EXTERNAL_AUTH_0_AUTH_URL="https://gitlab.company.org/oauth/authorize"
122+
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://gitlab.company.org/oauth/token"
123+
CODER_EXTERNAL_AUTH_0_REGEX=gitlab\.company\.org
124+
```
125+
111126
### Self-managed git providers
112127

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

0 commit comments

Comments
 (0)