Skip to main content

Module context

Module context 

Expand description

Request-scoped context: authenticated identity, structured principal, transport extensions, plus the AuthProvider trait that auth middlewares implement.

Structs§

CachedAuthProvider
An AuthProvider that always returns a single, already-established CratestackContext, ignoring whatever RequestContext it is asked to authenticate.
CratestackAuthIdentity
CratestackContext
PrincipalContext
PrincipalFacet
RequestContext
Everything an AuthProvider gets to see about an inbound request.
SystemContext
A context representing trusted in-process/server code (a procedure, a worker, a reconciliation job) rather than an end user.

Traits§

AuthProvider
Resolves the caller of a request into a CratestackContext.