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 install
to install dependencies. - Copy and rename
.env-example
to a file called.env
and 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 test
to run tests. Ornpm test -- --watch
to start the tests in watch mode.
License
Project is licensed under AGPL-3.0.