Example application using biscuit
See rest.http
/login-> authenticate and receive a biscuit token in a cookie/register-> create user/is_auth-> returns 401 when no token present, 403 invalid creds or 200
- Clone this repo
- Run
cargo run - Go to rest.http (In VSCode you'll the Rest Client Extension)
- Use the queries
sequenceDiagram
actor user
participant browser
user->>+auth: POST /login (user+pass)
auth->>-browser: set session cookie
browser->>+auth: /is_auth (with cookie)
auth->>-browser: ok
- Add
.well-known/endpoint with pub key - Add
is_adminendpoint, use RBAC example for this