pub trait OAuthUserInfoHandler: Send + Sync {
// Required method
fn get_user_info<'life0, 'async_trait>(
&'life0 self,
request: OAuthUserInfoRequest,
) -> Pin<Box<dyn Future<Output = Result<OAuthUserInfoResponse, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn configured_client_ids(
&self,
_ids: &[String],
) -> Option<Arc<dyn OAuthUserInfoHandler>> { ... }
fn errors_are_exceptions(&self) -> bool { ... }
fn mapped_handler(
&self,
_mapper: Arc<dyn OAuthProfileMapper>,
) -> Option<Arc<dyn OAuthUserInfoHandler>> { ... }
}Required Methods§
fn get_user_info<'life0, 'async_trait>(
&'life0 self,
request: OAuthUserInfoRequest,
) -> Pin<Box<dyn Future<Output = Result<OAuthUserInfoResponse, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Sourcefn configured_client_ids(
&self,
_ids: &[String],
) -> Option<Arc<dyn OAuthUserInfoHandler>>
fn configured_client_ids( &self, _ids: &[String], ) -> Option<Arc<dyn OAuthUserInfoHandler>>
Retain factory-specific use of the original configured client array.
Sourcefn errors_are_exceptions(&self) -> bool
fn errors_are_exceptions(&self) -> bool
Custom application callbacks throw on failure; factory transports can return a missing profile and tag only their uncaught projection failures.
Sourcefn mapped_handler(
&self,
_mapper: Arc<dyn OAuthProfileMapper>,
) -> Option<Arc<dyn OAuthUserInfoHandler>>
fn mapped_handler( &self, _mapper: Arc<dyn OAuthProfileMapper>, ) -> Option<Arc<dyn OAuthUserInfoHandler>>
Factory handlers can install application mapping before projecting raw profile fields. Custom getUserInfo callbacks retain their precedence.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".