pub trait GetIdentityResolver: Send + Sync {
// Required method
fn identity_resolver(
&self,
scheme_id: AuthSchemeId,
) -> Option<SharedIdentityResolver>;
}
Expand description
A trait for retrieving a shared identity resolver.
This trait exists so that AuthScheme::identity_resolver
can have access to configured identity resolvers without having access to all the runtime components.
Required Methods§
sourcefn identity_resolver(
&self,
scheme_id: AuthSchemeId,
) -> Option<SharedIdentityResolver>
fn identity_resolver( &self, scheme_id: AuthSchemeId, ) -> Option<SharedIdentityResolver>
Returns the requested identity resolver if it is set.