Personal authorization server implementing the IndieAuth federated login protocol.
| public | ||
| src | ||
| views | ||
| .env-example | ||
| .gitignore | ||
| .travis.yml | ||
| license.md | ||
| package-lock.json | ||
| package.json | ||
| prettier.config.js | ||
| readme.md | ||
| server.js | ||
Cellar door
Login to services using your own website.
Inspired by the IndieWeb movement I wanted to build a well-tested personal authorization server that implements the IndieAuth protocol.
Features:
- IndieAuth support.
- h-card support.
- Token endpoint support using JSON Web Tokens.
Deploy your own authorization server
Setup server:
- git clone this project.
- Run
npm installto install dependencies. - Copy and rename
.env-exampleto a file called.envand then fill out the missing configuration. - Run
npm start.
Connect web page to authorization server:
- Within the
<head></head>portion of your personal site's html:- Add
<link rel="authorization_endpoint" href="https://your-glitch-app.com">to make authorization endpoint discoverable. - Add
<link rel="token_endpoint" href="https://your-glitch-app.com/token">to make token endpoint discoverable.
- Add
- Test logging into a site, for example indielogin.com.
- And if you want, manually test the access token flow using this tool by Sebastiaan Andeweg.
Development
- git clone this project.
- Use command
npm testto run tests. Ornpm test -- --watchto start the tests in watch mode.
License
Project is licensed under AGPL-3.0.