pub type SubjectResolver = Arc<dyn Fn(&HeaderMap) -> Option<String> + Send + Sync>;Available on crate feature
http only.Expand description
How the host names the authenticated resource owner for the interactive endpoints.
The HeaderMap is the request’s, so a host can read its own session cookie or a
reverse-proxy assertion header. None means “nobody is logged in”, which is a refusal, not
an error: see ServiceBuilder::with_subject_resolver.
Aliased Type§
pub struct SubjectResolver { /* private fields */ }