pub trait GoatStateTrait {
    // Required methods
    fn connpool<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Pool<Sqlite>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn oidc_update<'life0, 'async_trait>(
        &'life0 mut self,
        response: CustomProviderMetadata
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn pop_verifier<'life0, 'async_trait>(
        &'life0 mut self,
        csrftoken: String
    ) -> Pin<Box<dyn Future<Output = Option<(String, Nonce)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn oauth2_client_id<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ClientId> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn oauth2_secret<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Option<ClientSecret>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn push_verifier<'life0, 'async_trait>(
        &'life0 mut self,
        csrftoken: String,
        verifier: (String, Nonce)
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn connpool<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Pool<Sqlite>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn oidc_update<'life0, 'async_trait>( &'life0 mut self, response: CustomProviderMetadata ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn pop_verifier<'life0, 'async_trait>( &'life0 mut self, csrftoken: String ) -> Pin<Box<dyn Future<Output = Option<(String, Nonce)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn oauth2_client_id<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ClientId> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn oauth2_secret<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Option<ClientSecret>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn push_verifier<'life0, 'async_trait>( &'life0 mut self, csrftoken: String, verifier: (String, Nonce) ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl GoatStateTrait for Arc<RwLock<GoatChildState>>

source§

fn connpool<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Pool<Sqlite>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an sqlite connection pool

source§

fn push_verifier<'life0, 'async_trait>( &'life0 mut self, csrftoken: String, verifier: (String, Nonce) ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Store the PKCE verifier details server-side for when the user comes back with their auth token

source§

fn oidc_update<'life0, 'async_trait>( &'life0 mut self, response: CustomProviderMetadata ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn pop_verifier<'life0, 'async_trait>( &'life0 mut self, csrftoken: String ) -> Pin<Box<dyn Future<Output = Option<(String, Nonce)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn oauth2_client_id<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = ClientId> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn oauth2_secret<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Option<ClientSecret>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§