Skip to content

Commit 45ad599

Browse files
Apply suggestions from code review
Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
1 parent 5a8658d commit 45ad599

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

docs/admin/external-auth.md

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ application. The following providers are supported:
1111

1212
The next step is to configure the Coder server to use the OAuth application by
1313
setting the following environment variables:
14-
<div class="tabs">
1514

16-
## Environment Variables
15+
## Configuration
1716

1817
```env
1918
CODER_EXTERNAL_AUTH_0_ID="<USER_DEFINED_ID>"
@@ -29,44 +28,11 @@ The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
2928
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
3029
GitHub provider).
3130

32-
## Docker Compose
33-
34-
```yaml
35-
services:
36-
coder:
37-
environment:
38-
CODER_EXTERNAL_AUTH_0_ID: <USER_DEFINED_ID>
39-
CODER_EXTERNAL_AUTH_0_TYPE: <github|gitlab|azure-devops|bitbucket-cloud|bitbucket-server|etc>
40-
CODER_EXTERNAL_AUTH_0_CLIENT_ID: <OAuth app client ID>
41-
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET: <OAuth app client secret>
42-
```
4331

4432
The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
4533
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
4634
GitHub provider).
4735

48-
## Docker CLI
49-
50-
```sh
51-
export DOCKER_GROUP=$(getent group docker | cut -d: -f3)
52-
docker run --rm -it \
53-
-e CODER_ACCESS_URL="https://coder.example.com" \
54-
-e CODER_PG_CONECTION_URL="postgresql://username:password@database/coder" \
55-
-e CODER_EXTERNAL_AUTH_0_ID="<USER_DEFINED_ID>" \
56-
-e CODER_EXTERNAL_AUTH_0_TYPE="<github|gitlab|azure-devops|bitbucket-cloud|bitbucket-server|etc>" \
57-
-e CODER_EXTERNAL_AUTH_0_CLIENT_ID="<OAuth app client ID>" \
58-
-e CODER_EXTERNAL_AUTH_0_CLIENT_SECRET="<OAuth app client secret>" \
59-
-v /var/run/docker.sock:/var/run/docker.sock \
60-
--group-add $DOCKER_GROUP \
61-
ghcr.io/coder/coder:latest
62-
```
63-
64-
The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
65-
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
66-
GitHub provider).
67-
68-
</div>
69-
7036
You can now add the following code to any template. This will add a button to the workspace setup page which will allow you to authenticate with your provider.
7137

7238
```tf

0 commit comments

Comments
 (0)