Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
add Github OAuth2.0 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Sep 30, 2020
1 parent cb8551e commit f7f4320
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Please ask questions either here or via LinkedIn. I am happy to help you! @green
* [Auth0](#auth0)
* [OneLogin](#onelogin)
* [Microsoft](#microsoft)
* [Github](#github)
* [X.509 Certificate-based Authentication Backend](#x509-certificate-based-authentication-backend)

<!-- end-markdown-toc -->
Expand Down Expand Up @@ -1590,6 +1591,32 @@ TBD.

[:arrow_up: Back to Top](#table-of-contents)

#### Github

Follow the instructions at `https://github.com/settings/apps/new`.

GitHub App name: "My Gatekeeper"

Description: "Caddy v2 Authentication Portal"

Homepage URL: `https://localhost:8443/`

User authorization callback URL: `https://localhost:8443/auth/oauth2/github/authorization-code-callback`

Check "Expire user authorization tokens".

Check "Request user authorization (OAuth) during installation"

Upon successful completion of the instructions, you will get:

![Settings - Developer settings - GitHub Apps - My Gatekeeper](./assets/docs/images/oauth2_github_new_app.png)

Additionally, click "generate a private key" to sign access token requests.

![Settings - Developer settings - GitHub Apps - My Gatekeeper - Private Keys](./assets/docs/images/oauth2_github_sign_keys.png)

[:arrow_up: Back to Top](#table-of-contents)

<!--- end of section -->

## X.509 Certificate-based Authentication Backend
Expand Down
Binary file added assets/docs/images/oauth2_github_new_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/images/oauth2_github_sign_keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions assets/docs/pages/80-backend-oauth2.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,30 @@ TBD.

[:arrow_up: Back to Top](#table-of-contents)

#### Github

Follow the instructions at `https://github.com/settings/apps/new`.

GitHub App name: "My Gatekeeper"

Description: "Caddy v2 Authentication Portal"

Homepage URL: `https://localhost:8443/`

User authorization callback URL: `https://localhost:8443/auth/oauth2/github/authorization-code-callback`

Check "Expire user authorization tokens".

Check "Request user authorization (OAuth) during installation"

Upon successful completion of the instructions, you will get:

![Settings - Developer settings - GitHub Apps - My Gatekeeper](./assets/docs/images/oauth2_github_new_app.png)

Additionally, click "generate a private key" to sign access token requests.

![Settings - Developer settings - GitHub Apps - My Gatekeeper - Private Keys](./assets/docs/images/oauth2_github_sign_keys.png)

[:arrow_up: Back to Top](#table-of-contents)

<!--- end of section -->

0 comments on commit f7f4320

Please sign in to comment.