Skip to main content

OAuthTokenGenerator

Trait OAuthTokenGenerator 

Source
pub trait OAuthTokenGenerator:
    Send
    + Sync
    + Debug {
    // Required method
    fn generate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: &'life1 OAuthTokenIssueParams,
    ) -> Pin<Box<dyn Future<Output = AuthResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Application-owned opaque access/refresh credentials. The admitted issuance params provide native context without additional user or client lookups. Empty output is preserved; only an absent configured generator uses randomness.

Required Methods§

Source

fn generate<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 OAuthTokenIssueParams, ) -> Pin<Box<dyn Future<Output = AuthResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§