ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

Service provider wiring the authentication module.

The provider is deliberately eager: Auth.user(), Auth.check() and Auth.guest() are synchronous and are called from templates and controllers without await. A deferred provider would leave the facade unpinned, and the first access would return a dispatcher instead of the manager.

Async Method boot Pin the Auth facade once every service is registered.
Method register Bind stateless services and the request-scoped authentication context.

Inherited from ServiceProvider:

Method __init__ Initialize a new ServiceProvider instance with the given application container.
Instance Variable app Undocumented
async def boot(self): (source)

Pin the Auth facade once every service is registered.

Returns
NoneAttribute access on the facade becomes a direct passthrough.
def register(self): (source)

Bind stateless services and the request-scoped authentication context.

Guards, repositories and the authorizer hold no per request state, so a single shared instance is safe. Everything that belongs to a request lives in the authentication context, which the HTTP kernel scopes with contextvars.

Returns
NoneThe container is populated as a side effect.