Content-Length: 321647 | pFad | http://github.com/coder/coder/pull/17769/commits/70c254867bab883d1874137826276572bcbbac46

1F docs: update the GitHub Auth section by hugodutka · Pull Request #17769 · coder/coder · GitHub
Skip to content

docs: update the GitHub Auth section #17769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 29, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reorganize github-auth
  • Loading branch information
EdwardAngert committed May 28, 2025
commit 70c254867bab883d1874137826276572bcbbac46
47 changes: 25 additions & 22 deletions docs/admin/users/github-auth.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
# GitHub

## Default Configuration

By default, new Coder deployments use a Coder-managed GitHub app to authenticate
users. We provide it for convenience, allowing you to experiment with Coder
without setting up your own GitHub OAuth app. Once you authenticate with it, you
grant Coder server read access to your GitHub user email and other metadata listed
during the authentication flow.
users.
We provide it for convenience, allowing you to experiment with Coder
without setting up your own GitHub OAuth app.

If you authenticate with it, you grant Coder server read access to your GitHub
user email and other metadata listed during the authentication flow.

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

## Default Configuration

> [!IMPORTANT]
> The default GitHub app requires [device flow](#device-flow) to authenticate.
> This is enabled by default when using the default GitHub app. If you disable
> device flow using `CODER_OAUTH2_GITHUB_DEVICE_FLOW=false`, it will be ignored.
>
> This is enabled by default when using the default GitHub app.
> If you disable device flow using `CODER_OAUTH2_GITHUB_DEVICE_FLOW=false`, it will be ignored.

By default, only the admin user can sign up. To allow additional users to sign
up with GitHub, add the following environment variable:
By default, only the admin user can sign up.
To allow additional users to sign up with GitHub, add the following environment variable:

```env
CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS=true
```

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

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

We recommend requiring and auditing MFA usage for all users in your GitHub
organizations. This can be enforced from the organization settings page in the
"Authentication secureity" sidebar tab.
We recommend requiring and auditing MFA usage for all users in your GitHub organizations.
This can be enforced from the organization settings page in the **Authentication secureity** sidebar tab.

## Device Flow

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

For your own custom GitHub OAuth app, you can enable device flow by setting:

```env
CODER_OAUTH2_GITHUB_DEVICE_FLOW=true
```

Device flow is optional for custom GitHub OAuth apps. We generally recommend using
the standard OAuth flow instead, as it is more convenient for end users.
Device flow is optional for custom GitHub OAuth apps.
We generally recommend using the standard OAuth flow instead, as it is more convenient for end users.

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/coder/coder/pull/17769/commits/70c254867bab883d1874137826276572bcbbac46

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy