pub fn scope<F: Future>(
identity: Option<AuthenticatedIdentity>,
fut: F,
) -> impl Future<Output = F::Output>Expand description
Run fut with identity set as the current auth context for this task.
Called by core.rs before dispatching each handler invocation.