Skip to content

Commit b1f32b5

Browse files
committed
git providers to tabs
1 parent e84811c commit b1f32b5

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

docs/admin/external-auth.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ An access token can be accessed within the workspace by using
5959
coder external-auth <USER_DEFINED_ID> access-token
6060
```
6161

62-
## Azure DevOps
62+
## Git-provider specific env variables
63+
64+
<div class="tabs">
65+
66+
### Azure DevOps
6367

6468
Azure DevOps requires the following environment variables:
6569

@@ -73,7 +77,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://app.vssps.visualstudio.com/oauth2/author
7377
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://app.vssps.visualstudio.com/oauth2/token"
7478
```
7579

76-
## Azure DevOps (via Entra ID)
80+
### Azure DevOps (via Entra ID)
7781

7882
Azure DevOps (via Entra ID) requires the following environment variables:
7983

@@ -87,7 +91,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://login.microsoftonline.com/<TENANT ID>/oa
8791

8892
> Note: Your app registration in Entra ID requires the `vso.code_write` scope
8993
90-
## Bitbucket Server
94+
### Bitbucket Server
9195

9296
Bitbucket Server requires the following environment variables:
9397

@@ -99,7 +103,7 @@ CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxx
99103
CODER_EXTERNAL_AUTH_0_AUTH_URL=https://bitbucket.domain.com/rest/oauth2/latest/authorize
100104
```
101105

102-
## Gitea
106+
### Gitea
103107

104108
```env
105109
CODER_EXTERNAL_AUTH_0_ID="gitea"
@@ -113,7 +117,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://gitea.com/login/oauth/authorize"
113117
The Redirect URI for Gitea should be
114118
`https://coder.company.org/external-auth/gitea/callback`.
115119

116-
## GitHub
120+
### GitHub
117121

118122
> If you don't require fine-grained access control, it's easier to configure a
119123
> GitHub OAuth app!
@@ -154,7 +158,7 @@ CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
154158
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
155159
```
156160

157-
## GitHub Enterprise
161+
### GitHub Enterprise
158162

159163
GitHub Enterprise requires the following environment variables:
160164

@@ -168,7 +172,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://github.example.com/login/oauth/authorize
168172
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://github.example.com/login/oauth/access_token"
169173
```
170174

171-
## GitLab self-managed
175+
### GitLab self-managed
172176

173177
GitLab self-managed requires the following environment variables:
174178

@@ -184,11 +188,11 @@ CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://gitlab.company.org/oauth/token"
184188
CODER_EXTERNAL_AUTH_0_REGEX=gitlab\.company\.org
185189
```
186190

187-
## JFrog Artifactory
191+
### JFrog Artifactory
188192

189193
Visit the [JFrog Artifactory](../admin/integrations/jfrog-artifactory.md) guide for instructions on how to set up for JFrog Artifactory.
190194

191-
## Self-managed Git providers
195+
### Self-managed Git providers
192196

193197
Custom authentication and token URLs should be used for self-managed Git
194198
provider deployments.
@@ -202,6 +206,8 @@ CODER_EXTERNAL_AUTH_0_REGEX=github\.company\.org
202206

203207
> Note: The `REGEX` variable must be set if using a custom git domain.
204208
209+
</div>
210+
205211
## Custom scopes
206212

207213
Optionally, you can request custom scopes:

0 commit comments

Comments
 (0)