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

Undocumented

Method __init__ Configure the controller from the session authentication settings.
Async Method index Return the login page response.
Async Method login Handle the login form submission.
Async Method logout Invalidate the current session and return to the public welcome page.
Constant DEFAULT_LOGIN_PATH Undocumented
Constant HOME_REDIRECT_PATH Undocumented
Constant LOGIN_VIEW_NAME Undocumented
Constant LOGOUT_REDIRECT_PATH Undocumented
Instance Variable redirect_to Undocumented
def __init__(self, application: IApplication): (source)

Configure the controller from the session authentication settings.

Web login uses the session guard through Auth.attempt() regardless of the guard configured as the application's default.

Parameters
application:IApplicationApplication instance used to read the auth configuration.
Returns
NoneComplete the documented operation without returning a value.
async def index(self) -> HttpResponse: (source)

Return the login page response.

Returns
HttpResponseRendered response for the login page.
async def login(self, request: Request, payload: LoginSchema, auth: IAuthManager) -> HttpResponse: (source)

Handle the login form submission.

Parameters
request:RequestIncoming HTTP request, used to read the raw submitted payload.
payload:LoginSchemaValidated credentials; invalid submissions never reach this method.
auth:IAuthManagerAuthentication service using the request's existing session.
Returns
HttpResponseRedirect to the dashboard, or back with a generic credential error.
async def logout(self, auth: IAuthManager) -> HttpResponse: (source)

Invalidate the current session and return to the public welcome page.

Parameters
auth:IAuthManagerAuthentication service bound to the current request.
Returns
HttpResponseRedirect whose session cookie is cleared by the web middleware.
DEFAULT_LOGIN_PATH: str = (source)

Undocumented

Value
'/login'
HOME_REDIRECT_PATH: str = (source)

Undocumented

Value
'/home'
LOGIN_VIEW_NAME: str = (source)

Undocumented

Value
'auth.login'
LOGOUT_REDIRECT_PATH: str = (source)

Undocumented

Value
'/'
redirect_to: str = (source)

Undocumented