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.

module documentation

Store expiring token digests and rotate them on persistent login.

Class RememberMe Store expiring token digests and rotate them on persistent login.
Function apply_remember_cookie Apply a queued remember-cookie change to the outgoing response.
Constant _COOKIE_PATTERN Compiled pattern used to recognize cookie pattern.
Constant _COOKIE_STATE _auth_remember_cookie.
Constant _MAX_COOKIE_LENGTH Max cookie length value used by remember.
def apply_remember_cookie(request: _http.Request, response: _http.Response): (source)

Apply a queued remember-cookie change to the outgoing response.

Parameters
request:orionis.http.RequestRequest containing a pending cookie change, if any.
response:orionis.http.ResponseResponse that will receive the cookie and cache-control headers.
Returns
NoneNo return value.
_COOKIE_PATTERN = (source)

Compiled pattern used to recognize cookie pattern.

Value
re.compile(r'(.{1,255})\|(\d{1,12})\|([A-Za-z0-9_-]{43})')
_COOKIE_STATE: str = (source)

_auth_remember_cookie.

Value
'_auth_remember_cookie'
_MAX_COOKIE_LENGTH: int = (source)

Max cookie length value used by remember.

Value
512