Provider

Trait Provider 

Source
pub trait Provider
where Self: Sized,
{ // Required methods fn store_client<'life0, 'async_trait>( &'life0 self, client: Client, ) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_client<'life0, 'life1, 'async_trait>( &'life0 self, client_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<Client>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn save_authorization_information<'life0, 'async_trait>( &'life0 self, id: String, information: AuthorizationInformation, ) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_authorization_information<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<AuthorizationInformation>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn remove_authorization_information<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; // Provided methods fn verify_authorization_request<'life0, 'async_trait, T>( &'life0 self, request: AuthorizationRequest, flow: T, ) -> Pin<Box<dyn Future<Output = Result<(VerifiedAuthorizationRequest, SigninInformation), OAuthError>> + 'async_trait>> where T: 'async_trait + AuthorizationFlow, Self: 'async_trait, 'life0: 'async_trait { ... } fn authorize<'life0, 'async_trait, T>( &'life0 self, request: VerifiedAuthorizationRequest, flow: T, ) -> Pin<Box<dyn Future<Output = Result<T::Response, OAuthError>> + 'async_trait>> where T: 'async_trait + AuthorizationFlow, Self: 'async_trait, 'life0: 'async_trait { ... } fn get_token<'life0, 'async_trait, T>( &'life0 self, authenticated_client: Option<Client>, request: T::Request, flow: T, ) -> Pin<Box<dyn Future<Output = Result<T::Response, OAuthError>> + 'async_trait>> where T: 'async_trait + TokenFlow, Self: 'async_trait, 'life0: 'async_trait { ... } }

Required Methods§

Source

fn store_client<'life0, 'async_trait>( &'life0 self, client: Client, ) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_client<'life0, 'life1, 'async_trait>( &'life0 self, client_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<Client>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn save_authorization_information<'life0, 'async_trait>( &'life0 self, id: String, information: AuthorizationInformation, ) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_authorization_information<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<AuthorizationInformation>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn remove_authorization_information<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn verify_authorization_request<'life0, 'async_trait, T>( &'life0 self, request: AuthorizationRequest, flow: T, ) -> Pin<Box<dyn Future<Output = Result<(VerifiedAuthorizationRequest, SigninInformation), OAuthError>> + 'async_trait>>
where T: 'async_trait + AuthorizationFlow, Self: 'async_trait, 'life0: 'async_trait,

Source

fn authorize<'life0, 'async_trait, T>( &'life0 self, request: VerifiedAuthorizationRequest, flow: T, ) -> Pin<Box<dyn Future<Output = Result<T::Response, OAuthError>> + 'async_trait>>
where T: 'async_trait + AuthorizationFlow, Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_token<'life0, 'async_trait, T>( &'life0 self, authenticated_client: Option<Client>, request: T::Request, flow: T, ) -> Pin<Box<dyn Future<Output = Result<T::Response, OAuthError>> + 'async_trait>>
where T: 'async_trait + TokenFlow, Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§