Skip to content

Commit 7949db8

Browse files
authored
docs: add GHE token & auth URLs (#6751)
* docs: add GHE token & auth URLs * cleanup
1 parent eaacc26 commit 7949db8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/admin/git-providers.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ CODER_GITAUTH_0_CLIENT_ID=xxxxxx
3131
CODER_GITAUTH_0_CLIENT_SECRET=xxxxxxx
3232
```
3333

34+
### GitHub Enterprise
35+
36+
GitHub Enterprise requires the following authentication and token URLs:
37+
38+
```console
39+
CODER_GITAUTH_0_VALIDATE_URL="https://github.example.com/login/oauth/access_token/info"
40+
CODER_GITAUTH_0_AUTH_URL="https://github.example.com/login/oauth/authorize"
41+
CODER_GITAUTH_0_TOKEN_URL="https://github.example.com/login/oauth/access_token"
42+
```
43+
3444
### Self-managed git providers
3545

3646
Custom authentication and token URLs should be
@@ -70,8 +80,9 @@ CODER_GITAUTH_1_TYPE=github
7080
CODER_GITAUTH_1_CLIENT_ID=xxxxxx
7181
CODER_GITAUTH_1_CLIENT_SECRET=xxxxxxx
7282
CODER_GITAUTH_1_REGEX=github.example.com
73-
CODER_GITAUTH_1_AUTH_URL="https://github.example.com/oauth/authorize"
74-
CODER_GITAUTH_1_TOKEN_URL="https://github.example.com/oauth/token"
83+
CODER_GITAUTH_1_AUTH_URL="https://github.example.com/login/oauth/authorize"
84+
CODER_GITAUTH_1_TOKEN_URL="https://github.example.com/login/oauth/access_token"
85+
CODER_GITAUTH_1_VALIDATE_URL="https://github.example.com/login/oauth/access_token/info"
7586
```
7687

7788
To support regex matching for paths (e.g. github.com/orgname), you'll need to add this to the [Coder agent startup script](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/agent#startup_script):

0 commit comments

Comments
 (0)