autohost-github-auth

1.0.0-beta-1 • Public • Published

GitHub auth provider for Autohost

config

{
  "auth": {
    "sessionMessages": false, // true to add login failure messages to session
    "loginEndpoint": "/auth/login", // this is the public endpoint for your login page
    "authEndpoint": "/auth/github", // this is the route that will kickoff the authentication against GitHub
    "github": {
        "organization": "ORG-NAME", // optionally add to require org membership
        "clientId": "YOUR_CLIENT_ID_HERE",
        "clientSecret": "YOUR_CLIENT_SECRET_HERE",
        "callbackUrl": "http://localhost:3000/auth/github/callback" // this is the route the GitHub will request after authentication
    }
  }
}

Readme

Keywords

Package Sidebar

Install

npm i autohost-github-auth

Weekly Downloads

2

Version

1.0.0-beta-1

License

MIT License - http://opensource.org/licenses/MIT

Last publish

Collaborators

  • dougneiner