Skip to content

Commit 00cd35e

Browse files
doodzikkylecarbs
andauthored
Apply suggestions from code review
Co-authored-by: Kyle Carberry <kyle@carberry.com>
1 parent 9b4e4c4 commit 00cd35e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/admin/external-auth.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ application. The following providers are supported:
2828
The next step is to [configure the Coder server](./configure.md) to use the OAuth application by setting the following environment variables:
2929

3030
```env
31-
CODER_EXTERNAL_AUTH_0_ID="USER_DEFINED"
31+
CODER_EXTERNAL_AUTH_0_ID="USER_DEFINED_ID"
3232
CODER_EXTERNAL_AUTH_0_TYPE=<github|gitlab|azure-devops|bitbucket-cloud|bitbucket-server|etc>
3333
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
3434
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
@@ -38,15 +38,15 @@ CODER_EXTERNAL_AUTH_0_DISPLAY_NAME="Google Calendar"
3838
CODER_EXTERNAL_AUTH_0_DISPLAY_ICON="https://mycustomicon.com/google.svg"
3939
```
4040

41-
The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal reference. Therefore, it can be set to an arbitrary ID (e.g., `primary-github` for your GitHub provider).
41+
The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your GitHub provider).
4242

4343

4444
### GitHub
4545

46-
> If you don't fined-grained control you can configure a GitHub OAuth app, which is less overhead.
46+
> If you don't require fine-grained access control, it's easier to configure a GitHub OAuth app!
4747
4848
1. [Create a GitHub App](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app)
49-
* Set the callback URL to `https://coder.example.com/external-auth/primary-github/callback`.
49+
* Set the callback URL to `https://coder.example.com/external-auth/USER_DEFINED_ID/callback`.
5050
* Deactivate Webhooks.
5151
* Enable fine-grained access to specific repositories or a subset of
5252
permissions for security.
@@ -72,7 +72,7 @@ The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal referen
7272
![Install GitHub App](../images/admin/github-app-install.png)
7373

7474
```env
75-
CODER_EXTERNAL_AUTH_0_ID="primary-github"
75+
CODER_EXTERNAL_AUTH_0_ID="USER_DEFINED_ID"
7676
CODER_EXTERNAL_AUTH_0_TYPE=github
7777
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx
7878
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx
@@ -221,7 +221,7 @@ coder:
221221
env:
222222
# […]
223223
- name: CODER_EXTERNAL_AUTH_0_ID
224-
value: primary-github
224+
value: USER_DEFINED_ID
225225

226226
- name: CODER_EXTERNAL_AUTH_0_TYPE
227227
value: github

0 commit comments

Comments
 (0)