Authentication and authorization
Orionis resolves the current identity through browser sessions or personal access tokens and evaluates permissions, roles and policies. Context belongs to a request; shared services do not retain a global user.
For a browser application, start with session login. For scripts or integrations calling your API, issue a personal token through an authorized session and protect the API with token middleware. In both cases, add permissions or resource policies for actions that need more than a signed-in user.
- Identity and session login: models, guards, login and logout.
- Permissions, roles and policies: protect capabilities and resources.
- Personal access tokens: issue, restrict and revoke credentials.
- Remember-me and account recovery: persistent cookies, resets and default pages.
Requires Python 3.14+, a configured ORM identity model, hashing and authentication migrations for persistence. Facade/repository examples require a booted application; snapshot examples are independent. Review sessions, HTTP and ORM.