update readme and .env-example

This commit is contained in:
Nils Norman Haukås 2018-07-20 11:24:31 +02:00
parent 65c12dd197
commit c8335ee524
No known key found for this signature in database
GPG key ID: BB8DD87F83E1359E
2 changed files with 8 additions and 2 deletions

View file

@ -8,3 +8,6 @@ USER_PASSWORD=
# Used for signing cookies, should be at least 32 characters long
IRON_SECRET=
# Used for signing tokens, should be different from the IRON_SECRET
JWT_SECRET=

View file

@ -11,13 +11,16 @@ Features:
- IndieAuth support.
- [h-card](https://indieweb.org/h-card) support.
- [Token endpoint support](https://indieweb.org/token-endpoint).
## Deploy your own authorization server using glitch.com
1. [Remix my Glitch app](https://bit.ly/2zvqIvo).
2. Complete the .env file configuration.
3. Add `<link rel="authorization_endpoint" href="https://your-glitch-app.com">` within the `<head></head>` portion of your personal site's html. This enables sites to discover the authorization endpoint.
4. Test logging into a site, for example [indielogin.com](https://indielogin.com)
3. 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.
4. Test logging into a site, for example [indielogin.com](https://indielogin.com).
## Development