Actix web using Portier for authentication and Handlebars templates to render HTML.
Start redis (for session persistance) using docker-compose
.
docker-compose up -d
Update conf/local.yaml and/or conf/base.yaml to suit your needs and start the server.
cargo run
Access the homepage at 127.0.0.1:8000
.
Available endpoints:
- /
- GET - /login
- POST - /login
- POST - /claim - Expects Form with
id_token
- GET - /dashboard
- GET - /whoami
- GET - /health
- GET - /logout
- POST - /logout
Most of the code comes from the awesome zero-to-production repository, by LukeMathWalker.
HTML Forms are adapted from this Minimal Login Form by Thodoris Thomaidis