@@ -59,7 +59,11 @@ An access token can be accessed within the workspace by using
59
59
coder external-auth < USER_DEFINED_ID> access-token
60
60
```
61
61
62
- ## Azure DevOps
62
+ ## Git-provider specific env variables
63
+
64
+ <div class =" tabs " >
65
+
66
+ ### Azure DevOps
63
67
64
68
Azure DevOps requires the following environment variables:
65
69
@@ -73,7 +77,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://app.vssps.visualstudio.com/oauth2/author
73
77
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://app.vssps.visualstudio.com/oauth2/token"
74
78
```
75
79
76
- ## Azure DevOps (via Entra ID)
80
+ ### Azure DevOps (via Entra ID)
77
81
78
82
Azure DevOps (via Entra ID) requires the following environment variables:
79
83
@@ -87,7 +91,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://login.microsoftonline.com/<TENANT ID>/oa
87
91
88
92
> Note: Your app registration in Entra ID requires the ` vso.code_write ` scope
89
93
90
- ## Bitbucket Server
94
+ ### Bitbucket Server
91
95
92
96
Bitbucket Server requires the following environment variables:
93
97
@@ -99,7 +103,7 @@ CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxx
99
103
CODER_EXTERNAL_AUTH_0_AUTH_URL=https://bitbucket.domain.com/rest/oauth2/latest/authorize
100
104
```
101
105
102
- ## Gitea
106
+ ### Gitea
103
107
104
108
``` env
105
109
CODER_EXTERNAL_AUTH_0_ID="gitea"
@@ -113,7 +117,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://gitea.com/login/oauth/authorize"
113
117
The Redirect URI for Gitea should be
114
118
` https://coder.company.org/external-auth/gitea/callback ` .
115
119
116
- ## GitHub
120
+ ### GitHub
117
121
118
122
> If you don't require fine-grained access control, it's easier to configure a
119
123
> GitHub OAuth app!
@@ -154,7 +158,7 @@ CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
154
158
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
155
159
```
156
160
157
- ## GitHub Enterprise
161
+ ### GitHub Enterprise
158
162
159
163
GitHub Enterprise requires the following environment variables:
160
164
@@ -168,7 +172,7 @@ CODER_EXTERNAL_AUTH_0_AUTH_URL="https://github.example.com/login/oauth/authorize
168
172
CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://github.example.com/login/oauth/access_token"
169
173
```
170
174
171
- ## GitLab self-managed
175
+ ### GitLab self-managed
172
176
173
177
GitLab self-managed requires the following environment variables:
174
178
@@ -184,11 +188,11 @@ CODER_EXTERNAL_AUTH_0_TOKEN_URL="https://gitlab.company.org/oauth/token"
184
188
CODER_EXTERNAL_AUTH_0_REGEX=gitlab\.company\.org
185
189
```
186
190
187
- ## JFrog Artifactory
191
+ ### JFrog Artifactory
188
192
189
193
Visit the [ JFrog Artifactory] ( ../admin/integrations/jfrog-artifactory.md ) guide for instructions on how to set up for JFrog Artifactory.
190
194
191
- ## Self-managed Git providers
195
+ ### Self-managed Git providers
192
196
193
197
Custom authentication and token URLs should be used for self-managed Git
194
198
provider deployments.
@@ -202,6 +206,8 @@ CODER_EXTERNAL_AUTH_0_REGEX=github\.company\.org
202
206
203
207
> Note: The ` REGEX ` variable must be set if using a custom git domain.
204
208
209
+ </div >
210
+
205
211
## Custom scopes
206
212
207
213
Optionally, you can request custom scopes:
0 commit comments