pub trait GetIdentityResolver: Send + Sync {
// Required method
fn identity_resolver(
&self,
scheme_id: AuthSchemeId,
) -> Option<SharedIdentityResolver>;
}
Available on crate feature
client
only.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.