GitHub OAuth App

Mr.Hope ... 2020-1-7 About 1 min

# GitHub OAuth App

Vssue can also work with self-hosted GitHub Enterprise Server. Set the baseURL options to your GitHub URL.

GitHub requires clientSecret because GitHub does not support implicit grant type (opens new window)

Set up OAuth App - GitHub 00

# Create a new OAuth App

Set up OAuth App - GitHub 01 Set up OAuth App - GitHub 02 Set up OAuth App - GitHub 03

  • Set the Homepage URL and Authorization callback URL to your site URL (Here we take localhost:8080 for example)

Set up OAuth App - GitHub 04

# Get the Client ID and Secret

Then you’ve created a new OAuth App, and here is your Client ID and Client Secret.

Set up OAuth App - GitHub 05

# Config and start your Vssue

Copy the Client ID and Client Secret, and set owner and repo.

The URL pattern of github repo is https://github.com/${owner}/${repo}

Here we take https://github.com/meteorlxy/vssue-demo for example, and set the title of issue to Vssue Demo.

Then run anywhere -h localhost 8080 to serve the index.html on localhost:8080.

Set up OAuth App - GitHub 06

# Try out Vssue locally

Vssue has already run here. Click Login to login with GitHub account.

Set up OAuth App - GitHub 07

Redirect to GitHub Authorization page. Click Authorize ${your account} to login.

Set up OAuth App - GitHub 08

Leave a comment on this page ~

Set up OAuth App - GitHub 09

Set up OAuth App - GitHub 10

Tips

You can go to the repository meteorlxy/vssue-demo (opens new window) to get the demo code. Check the #1 issue (opens new window) of that repository to see what happened.

Last update: March 25, 2022 03:29
Contributors: Mr.Hope