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
class Auth(BaseEntity): (source)
Represent the authentication and authorization configuration.
| Method | __normalize |
Coerce a configuration section into its typed entity. |
| Method | __post |
Validate and normalize the authentication configuration. |
| Instance Variable | default |
Guard used when a middleware or a facade call does not name one. Accepts a Guards member or a plain string. |
| Instance Variable | identity |
Where the application identity lives and how it is verified. |
| Instance Variable | passwords |
Trusted reset URL, token table, lifetime and resend delay. |
| Instance Variable | remember |
Optional persistent login cookie name, lifetime and HTTPS requirement. |
| Instance Variable | session |
Options of the session guard used by web routes. |
| Instance Variable | tokens |
Options of the personal access token guard used by API routes. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Coerce a configuration section into its typed entity.
| Parameters | |
name:str | Name of the attribute holding the section. |
entity:type | Entity class the section must end up being an instance of. |
| Returns | |
None | The attribute is replaced in place when a dictionary is given. |
| Raises | |
TypeError | If the section is neither the entity nor a dictionary. |
Validate and normalize the authentication configuration.
| Returns | |
None | This method validates and normalizes attributes in place. |
| Raises | |
TypeError | If an option has an unexpected type. |
ValueError | If the default guard is not one of the supported guards. |
Guard used when a middleware or a facade call does not name one. Accepts a Guards member or a plain string.