You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/admin/auth.md
+10
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,17 @@ By default, Coder is accessible via password authentication.
5
5
The following steps explain how to set up GitHub OAuth or OpenID Connect.
6
6
7
7
If after configuring another authentication method you'd like to hide password authentication, you can configure that like so:
8
+
8
9
```console
9
10
CODER_PASSWORD_AUTH_HIDDEN=true
10
11
```
12
+
13
+
If your external authentication method(s) were to go down, you can un-hide password authentication with the following URL query parameter:
14
+
15
+
```console
16
+
https://coder.domain.com/login?auth=password
17
+
```
18
+
11
19
## GitHub
12
20
13
21
### Step 1: Configure the OAuth application in GitHub
@@ -80,12 +88,14 @@ Once complete, run `sudo service coder restart` to reboot Coder.
80
88
> When a new user is created, the `preferred_username` claim becomes the username. If this claim is empty, the email address will be stripped of the domain, and become the username (e.g. `example@coder.com` becomes `example`).
81
89
82
90
If your OpenID Connect provider requires client TLS certificates for authentication, you can configure them like so:
91
+
83
92
```console
84
93
CODER_TLS_CLIENT_CERT_FILE=/path/to/cert.pem
85
94
CODER_TLS_CLIENT_KEY_FILE=/path/to/key.pem
86
95
```
87
96
88
97
If you'd like to change the OpenID Connect button text and/or icon, you can configure them like so:
0 commit comments