Skip to content

Commit da04e13

Browse files
committed
github oauth2 by default docs
1 parent 2788eb5 commit da04e13

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/admin/users/github-auth.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# GitHub
22

3+
## Default Configuration
4+
5+
By default, new Coder deployments use a Coder-managed GitHub app to authenticate
6+
users. We provide it for convenience, allowing you to experiment with Coder without
7+
setting up your own GitHub OAuth app. However, by using it, you allow the app's
8+
admin, Coder the company, to see:
9+
10+
- your GitHub user email
11+
- your GitHub organization membership
12+
13+
For production deployments, we recommend
14+
disabling the default and creating your own app.
15+
16+
The default is automatically disabled if you configure your own app as outlined
17+
below or set:
18+
19+
```env
20+
CODER_OAUTH2_GITHUB_DEFAULT_PROVIDER=false
21+
```
22+
323
## Step 1: Configure the OAuth application in GitHub
424

525
First,
@@ -82,3 +102,16 @@ helm upgrade <release-name> coder-v2/coder -n <namespace> -f values.yaml
82102
> We recommend requiring and auditing MFA usage for all users in your GitHub
83103
> organizations. This can be enforced from the organization settings page in the
84104
> "Authentication security" sidebar tab.
105+
106+
## Device Flow
107+
108+
Coder supports
109+
[device flow](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#device-flow)
110+
for GitHub OAuth. To enable it, set:
111+
112+
```env
113+
CODER_OAUTH2_GITHUB_DEVICE_FLOW=true
114+
```
115+
116+
This is optional. We recommend using the standard OAuth flow instead, as it is
117+
more convenient for end users.

0 commit comments

Comments
 (0)