Skip to main content

extract_authenticated_actor

Function extract_authenticated_actor 

Source
pub fn extract_authenticated_actor<'a, P, A>(
    provider: &'a P,
    context: &'a mut InvocationContext,
    request: &'a HandleRequest,
) -> ExtractorFuture<'a, A>
Expand description

Authenticates request evidence, attaches the assertion, and projects the HTTP-edge identity A.

An application implements AuthClientSource for its Endpoint provider and delegates its FromRequest implementation to this function. Authentication failures become intentional HTTP responses; runtime failures keep their generated Endpoint invocation semantics.