Skip to content

docs: add GHE token & auth URLs #6751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup
  • Loading branch information
ericpaulsen committed Mar 23, 2023
commit 2785bb9e60930469fcf907c3c47ad6ce543df52d
8 changes: 4 additions & 4 deletions docs/admin/git-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ CODER_GITAUTH_0_CLIENT_SECRET=xxxxxxx
GitHub Enterprise requires the following authentication and token URLs:

```console
CODER_GITAUTH_0_VALIDATE_URL="http://github.example.com/login/oauth/access_token/info"
CODER_GITAUTH_0_AUTH_URL="http://github.example.com/login/oauth/authorize"
CODER_GITAUTH_0_TOKEN_URL="http://github.example.com/login/oauth/access_token"
CODER_GITAUTH_0_VALIDATE_URL="https://github.example.com/login/oauth/access_token/info"
CODER_GITAUTH_0_AUTH_URL="https://github.example.com/login/oauth/authorize"
CODER_GITAUTH_0_TOKEN_URL="https://github.example.com/login/oauth/access_token"
```

### Self-managed git providers
Expand Down Expand Up @@ -82,7 +82,7 @@ CODER_GITAUTH_1_CLIENT_SECRET=xxxxxxx
CODER_GITAUTH_1_REGEX=github.example.com
CODER_GITAUTH_1_AUTH_URL="https://github.example.com/login/oauth/authorize"
CODER_GITAUTH_1_TOKEN_URL="https://github.example.com/login/oauth/access_token"
CODER_GITAUTH_0_VALIDATE_URL="http://github.example.com/login/oauth/access_token/info"
CODER_GITAUTH_1_VALIDATE_URL="https://github.example.com/login/oauth/access_token/info"
```

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):
Expand Down