-
Notifications
You must be signed in to change notification settings - Fork 887
init: oauth docs #2565
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
init: oauth docs #2565
Conversation
docs/install/oauth.md
Outdated
When [https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/](creating an OAuth app), | ||
GitHub will ask you for the following Coder parameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When [https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/](creating an OAuth app), | |
GitHub will ask you for the following Coder parameters: | |
First, [https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/](register a GitHub OAuth app). GitHub will ask you for the following Coder parameters: |
docs/install/oauth.md
Outdated
Alternatively, if you already have a running Coder instance, you can achieve the | ||
same result as the command above by adding the following environment variables | ||
to the `/etc/coder.d/coder.env` file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, if you already have a running Coder instance, you can achieve the | |
same result as the command above by adding the following environment variables | |
to the `/etc/coder.d/coder.env` file: | |
Alternatively, if you are running Coder as a system servide, you can achieve the | |
same result as the command above by adding the following environment variables | |
to the `/etc/coder.d/coder.env` file: |
docs/install/oauth.md
Outdated
CODER_OAUTH2_GITHUB_CLIENT_SECRET="57ebc9...02c24c" | ||
``` | ||
|
||
Once complete, run `sudo systemctl enable --now coder` to reboot Coder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once complete, run `sudo systemctl enable --now coder` to reboot Coder. | |
Once complete, run `sudo service coder restart` to restart Coder. |
docs/manifest.json
Outdated
}, | ||
{ | ||
"title": "GitHub OAuth", | ||
"description": "Learn how to authenticate with GitHub.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Learn how to authenticate with GitHub.", | |
"description": "Learn how to set up OAuth using your GitHub organization.", |
# GitHub OAuth | ||
|
||
By default, Coder is accessible via built-in authentication. Alternatively, you | ||
can configure Coder to enable logging in through GitHub OAuth. See below for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work with GitHub Enterprise or just GitHub? Might be nice to specify ;)
cc @kylecarbs
docs/install/oauth.md
Outdated
When [https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/](creating an OAuth app), | ||
GitHub will ask you for the following Coder parameters: | ||
|
||
- **Homepage URL**: Set to your Coder domain, e.g. `https://coder.domain.com` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **Homepage URL**: Set to your Coder domain, e.g. `https://coder.domain.com` | |
- **Homepage URL**: Set to your Coder domain (e.g., `https://coder.domain.com`) |
docs/install/oauth.md
Outdated
- **Homepage URL**: Set to your Coder domain, e.g. `https://coder.domain.com` | ||
- **User Authorization Callback URL**: Set to `https://coder.domain.com/api/v2/users/oauth2/github/callback` | ||
|
||
Note the Client ID and Client secret generated by GitHub. You will use these |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note the Client ID and Client secret generated by GitHub. You will use these | |
Note the Client ID and Client Secret generated by GitHub. You will use these |
adds new docs on how to configure GitHub OAuth.