JwtAuthProvider

Trait JwtAuthProvider 

Source
pub trait JwtAuthProvider:
    Sync
    + Send
    + TokenSigner {
    type TV: TokenValidator + Send + Sync;

    // Required methods
    fn validator(&self) -> &Self::TV;
    fn local_issuer(&self) -> &str;
    fn public_key_bytes(&self) -> &[u8] ;
}

Required Associated Types§

Required Methods§

Source

fn validator(&self) -> &Self::TV

Used to validate incoming JWTs.

Source

fn local_issuer(&self) -> &str

The issuer to use when signing JWTs.

Source

fn public_key_bytes(&self) -> &[u8]

Return the public key used to verify JWTs, as the bytes of a PEM public key file.

The /identity/public-key route calls this method to return the public key to callers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§