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 AuthenticateTokenMiddleware(AuthenticateMiddleware): (source)
Constructor: AuthenticateTokenMiddleware(app, manager, permissions)
Require an identity authenticated through a personal access token.
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
Inherited from AuthenticateMiddleware:
| Method | __init__ |
Initialise the middleware with its collaborators. |
| Method | _unauthenticated |
Build the answer given to an anonymous request. |
| Async Method | handle |
Reject anonymous requests and continue authenticated ones. |
| Class Variable | cache |
Cache-Control applied to every answer of a protected route. |
| Instance Variable | _redirect |
Redirect to produced by app.config. |
Inherited from ResolveIdentityMiddleware (via AuthenticateMiddleware):
| Async Method | _establish |
Resolve the identity and bind the resulting context. |
| Class Variable | guard |
An unpinned middleware reuses the request guard. Before any resolution, None falls back to the configured default guard. |
| Instance Variable | _manager |
Manager exposing the configured guards. |
| Instance Variable | _permissions |
Source the authorization snapshot is built from. |