Skip to content

Commit

Permalink
Add GitHub oauth2 configuration setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GDWR committed Jun 4, 2024
1 parent 2bcc1b8 commit f0525e8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/GITHUB-OAUTH2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# GitHub OAuth2 Setup

### 1. Goto [GitHub Developer Apps](https://github.com/settings/developers)

### 2. Create a New Application
![GitHub Create Application](./imgs/github-create-application.png)

### 3. Add details
![GitHub Create Application Details](./imgs/github-create-application-details.png)

### 4. Get Client ID and Secrets
![GitHub Client ID And Secrets](./imgs/github-get-clientid-and-clientsecret.png)

### 5. Fill `.env` file

```dotenv
# GitHub Application Details for OAuth2
GITHUB_CLIENT_ID=<Client ID in step 4>
GITHUB_CLIENT_SECRET=<Client Secret in step 4>
ABANDON_AUTH_GITHUB_CALLBACK='http://localhost:8000/ui/github-callback'
ABANDON_AUTH_GITHUB_REDIRECT="https://github.com/login/oauth/authorize?client_id=$GITHUB_CLIENT_ID&redirect_uri=$ABANDON_AUTH_GITHUB_CALLBACK&scope=user:email"
```
Binary file added docs/imgs/github-create-application-details.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 docs/imgs/github-create-application.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0525e8

Please sign in to comment.