shield_oauth

Trait OauthStorage

Source
pub trait OauthStorage<U: User>: Storage<U> + Sync {
    // Required methods
    fn oauth_subproviders<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OauthSubprovider>, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn oauth_subprovider_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        subprovider_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<OauthSubprovider>, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn oauth_subproviders<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<OauthSubprovider>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn oauth_subprovider_by_id<'life0, 'life1, 'async_trait>( &'life0 self, subprovider_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<OauthSubprovider>, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§