Repository navigation
Authentication and permissions
Home / Technical documentation / Developing CARLOS
Permission work begins with a concrete question: who should be able to see or change this record? Find the application check that answers it, then trace how the UI responds when access is allowed or denied. A hidden menu item is only one part of the answer; the server must enforce the rule as well.
Begin at the sign-in flow and follow how the session identifies the user. Then inspect the request handler for an operation such as opening a chart or changing an appointment. Find the authorization check, patient context, and any request forgery protection before modifying the action. Avoid inferring permission behavior from a hidden button: the server must enforce it.
When changing a protected path, test an allowed role, a denied role, an expired session, and a request for the wrong patient. Check both the HTTP result and database state. Keep errors useful without disclosing protected data. The session guide and request protection guide describe the release's design; Accounts, roles, and access explains the clinic administrator's view.
SCREENSHOT NEEDED — DEV-AUTH: Capture a fictional release/2026.08 role configuration and the corresponding allowed and denied application outcomes. Show no passwords, session cookies, or tokens.
Test with fictional accounts that have different roles, including one that should be denied. Document the expected outcome for each. This makes a permission change reviewable by both developers and the clinic administrator who manages staff access.
Accounts, roles, and access · Architecture and codebase · Testing and quality
CARLOS documentation · Using CARLOS · Technical documentation
All topics · Get help · Improve this page
© 2026 CARLOS Contributors. Documentation licensed under CC BY-SA 4.0, except where otherwise noted.
Getting started and everyday reference
Office staff
Clinical staff and doctors
Clinic managers and administrators
Technical overview · Reference