Skip to content

Commit 9c5b631

Browse files
authored
feat: add docs for Bitbucket Server external auth config (#10617)
1 parent 8290fee commit 9c5b631

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/admin/external-auth.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Set the following environment variables to
3333

3434
```env
3535
CODER_EXTERNAL_AUTH_0_ID="primary-github"
36-
CODER_EXTERNAL_AUTH_0_TYPE=github|gitlab|azure-devops|bitbucket|<name of service e.g. jfrog>
36+
CODER_EXTERNAL_AUTH_0_TYPE=github|gitlab|azure-devops|bitbucket-cloud|bitbucket-server|<name of service e.g. jfrog>
3737
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
3838
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
3939
@@ -70,14 +70,30 @@ CODER_EXTERNAL_AUTH_0_DISPLAY_ICON="https://mycustomicon.com/google.svg"
7070

7171
### GitHub Enterprise
7272

73-
GitHub Enterprise requires the following authentication and token URLs:
73+
GitHub Enterprise requires the following environment variables:
7474

7575
```env
76+
CODER_EXTERNAL_AUTH_0_ID="primary-github"
77+
CODER_EXTERNAL_AUTH_0_TYPE=github-enterprise
78+
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
79+
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
7680
CODER_EXTERNAL_AUTH_0_VALIDATE_URL="https://github.example.com/api/v3/user"
7781
CODER_EXTERNAL_AUTH_0_AUTH_URL="https://github.example.com/login/oauth/authorize"
7882
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://github.example.com/login/oauth/access_token"
7983
```
8084

85+
### Bitbucket Server
86+
87+
Bitbucket Server requires the following environment variables:
88+
89+
```env
90+
CODER_EXTERNAL_AUTH_0_TYPE="bitbucket-server"
91+
CODER_EXTERNAL_AUTH_0_ID=bitbucket
92+
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxx
93+
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxx
94+
CODER_EXTERNAL_AUTH_0_AUTH_URL=https://bitbucket.domain.com/rest/oauth2/latest/authorize
95+
```
96+
8197
### Azure DevOps
8298

8399
Azure DevOps requires the following environment variables:

0 commit comments

Comments
 (0)