Core Concepts
Authentication & Roles (ADR 0002)
How Authula manages accounts, cookie sessions, and access control.
Per ADR 0002, Authula is the single source of truth for identity, sessions, and RBAC inside the dedicated authula PostgreSQL schema:
- Browser apps authenticate with
HttpOnlycookie sessions (credentials: "include"/ AxioswithCredentials: true). - State-changing requests are protected by origin-based CSRF verification (
CrossOriginCSRF). - Default roles (
AdminandUser) are bootstrapped on API startup. New sign-ups automatically receive theUserrole. GET /v1/auth/rolereturns the authenticated caller's assigned roles soadmin-uienforces Admin access cleanly.