Skip to main content

require_agent_token

Function require_agent_token 

Source
pub(super) async fn require_agent_token(
    __arg0: State<AppState>,
    req: Request<Body>,
    next: Next,
) -> Response
Expand description

Layered inside caller_middleware: refuses a request that isn’t Caller::Agent, or that names another agent than its token’s as the one acting.