Skip to content

Commit 70c2548

Browse files
committed
reorganize github-auth
1 parent 87f5dfa commit 70c2548

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

docs/admin/users/github-auth.md

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

3-
## Default Configuration
4-
53
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
7-
without setting up your own GitHub OAuth app. Once you authenticate with it, you
8-
grant Coder server read access to your GitHub user email and other metadata listed
9-
during the authentication flow.
4+
users.
5+
We provide it for convenience, allowing you to experiment with Coder
6+
without setting up your own GitHub OAuth app.
7+
8+
If you authenticate with it, you grant Coder server read access to your GitHub
9+
user email and other metadata listed during the authentication flow.
1010

1111
This access is necessary for the Coder server to complete the authentication
12-
process. To the best of our knowledge, Coder, the company, does not gain access
12+
process.
13+
To the best of our knowledge, Coder, the company, does not gain access
1314
to this data by administering the GitHub app.
1415

16+
## Default Configuration
17+
1518
> [!IMPORTANT]
1619
> The default GitHub app requires [device flow](#device-flow) to authenticate.
17-
> This is enabled by default when using the default GitHub app. If you disable
18-
> device flow using `CODER_OAUTH2_GITHUB_DEVICE_FLOW=false`, it will be ignored.
20+
>
21+
> This is enabled by default when using the default GitHub app.
22+
> If you disable device flow using `CODER_OAUTH2_GITHUB_DEVICE_FLOW=false`, it will be ignored.
1923
20-
By default, only the admin user can sign up. To allow additional users to sign
21-
up with GitHub, add the following environment variable:
24+
By default, only the admin user can sign up.
25+
To allow additional users to sign up with GitHub, add the following environment variable:
2226

2327
```env
2428
CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS=true
2529
```
2630

2731
[Install the GitHub app](https://github.com/apps/coder/installations/select_target) in every GitHub organization that you need to limit sign ups to.
28-
**This will grant Coder, the company, access to your organizations' data as
29-
described in the installation flow.** In a production environment, we recommend
30-
configuring your own GitHub OAuth app as outlined further below, so all of your
31-
data is kept private.
32+
This will grant Coder, the company, access to your organizations' data as described in the installation flow.
33+
In a production environment, we recommend configuring your own GitHub OAuth app as outlined further below, so all of your data is kept private.
3234

3335
If you'd like to proceed with the default GitHub app, install it in the
3436
organizations you want to limit sign ups to by visiting
@@ -135,23 +137,24 @@ To upgrade Coder, run:
135137
helm upgrade <release-name> coder-v2/coder -n <namespace> -f values.yaml
136138
```
137139

138-
We recommend requiring and auditing MFA usage for all users in your GitHub
139-
organizations. This can be enforced from the organization settings page in the
140-
"Authentication security" sidebar tab.
140+
We recommend requiring and auditing MFA usage for all users in your GitHub organizations.
141+
This can be enforced from the organization settings page in the **Authentication security** sidebar tab.
141142

142143
## Device Flow
143144

144145
Coder supports
145146
[device flow](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#device-flow)
146-
for GitHub OAuth. This is enabled by default for the default GitHub app and cannot be disabled
147-
for that app. For your own custom GitHub OAuth app, you can enable device flow by setting:
147+
for GitHub OAuth.
148+
This is enabled by default for the default GitHub app and cannot be disabled for that app.
149+
150+
For your own custom GitHub OAuth app, you can enable device flow by setting:
148151

149152
```env
150153
CODER_OAUTH2_GITHUB_DEVICE_FLOW=true
151154
```
152155

153-
Device flow is optional for custom GitHub OAuth apps. We generally recommend using
154-
the standard OAuth flow instead, as it is more convenient for end users.
156+
Device flow is optional for custom GitHub OAuth apps.
157+
We generally recommend using the standard OAuth flow instead, as it is more convenient for end users.
155158

156159
> [!NOTE]
157160
> If you're using the default GitHub app, device flow is always enabled regardless of

0 commit comments

Comments
 (0)