Skip to main content

IdTokenKeysSource

Trait IdTokenKeysSource 

Source
pub trait IdTokenKeysSource: Send + Sync {
    // Required method
    fn fetch_keys<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<IdTokenKeys>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Where an IdTokenVerifier gets its signing keys: Google’s published keys by default, or a local key in tests.

Required Methods§

Source

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

The signing keys as of now. An error means the keys are unavailable.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§