Trait splinter::oauth::ProfileProvider[][src]

pub trait ProfileProvider: Send + Sync {
    fn get_profile(
        &self,
        access_token: &str
    ) -> Result<Option<Profile>, InternalError>;
fn clone_box(&self) -> Box<dyn ProfileProvider>; }
Expand description

A service that fetches profile details from a backing OAuth server

Required methods

Attempts to get the profile details for the account that the given access token is for.

Clone implementation for ProfileProvider. The implementation of the Clone trait for Box<dyn ProfileProvider> calls this method.

Implementors