@schnack/plugin-auth-github
v0.1.5
Published
Github OAuth authentication for Schnack
Downloads
3
Readme
auth-github
Adds GitHub OAuth authentication to your Schnack server.
Usage
Add a plugins.auth-github
section to your Schnack config file schnack.json
:
{
"plugins": {
"auth-github": {
"client_id": "XXX",
"client_secret": "XXX"
}
}
}
Then run
npm init schnack
Preparation
- Create a new GitHub OAuth App
- Application name: the name of your blog
- Homepage URL: the URL of your schnack instance (e.g. https://schnack.example.com)
- Application description: the description of your blog
- Authorization callack URL: the URL of your schnack instance followed by
/auth/github/callback
(e.g. https://schnack.example.com/auth/github/callback)