Documentation / Under the hood
Authentication, sessions and permission checks
What the server does on each request.
- The request carries the session cookie. The server looks the session up and loads the user and permissions.
- No valid session: pages redirect to
/login?next=…; API calls return 401. - The route requires a permission (for example
mdm:remediate) and, for type-specific routes, access to the resource type. Missing: 403. Administrators pass. - Lists are filtered by allowed types so that counts, searches and charts never reveal types the user may not see.
Passwords are stored as salted scrypt hashes. Repeated failures lock the account for a few minutes. Set COOKIE_SECURE=1 behind HTTPS.