docs(auth): document token authentication flow

This commit is contained in:
Orvanix
2026-03-12 11:59:49 +00:00
parent e98ac8a4e5
commit 6af15b9622
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -249,6 +249,13 @@ oidc.admin_claim_value = 'readmeabook-admin'
- **Admin Settings:** OIDC section in `/admin/settings` (auth tab)
- **Library:** `openid-client` (OIDC discovery, token exchange, PKCE)
## Admin-Generated Login Token
- Login token stored as SHA-256 hash in `User.loginTokenHash`
- Admin generates/revokes via user permissions modal
- User login with token `/auth/token/login?token=rmab_...`
- Invalid token redirects to `/login`
## Security
- Never log tokens