Trait unleash_edge::types::TokenValidator

source ·
pub trait TokenValidator {
    // Required method
    fn register_tokens<'life0, 'async_trait>(
        &'life0 mut self,
        tokens: Vec<String>
    ) -> Pin<Box<dyn Future<Output = EdgeResult<Vec<EdgeToken>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn register_tokens<'life0, 'async_trait>( &'life0 mut self, tokens: Vec<String> ) -> Pin<Box<dyn Future<Output = EdgeResult<Vec<EdgeToken>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Will validate upstream, and add tokens with status from upstream to token cache. Will block until verified with upstream

Implementors§