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§
type TV: TokenValidator + Send + Sync
Required Methods§
Sourcefn local_issuer(&self) -> &str
fn local_issuer(&self) -> &str
The issuer to use when signing JWTs.
Sourcefn public_key_bytes(&self) -> &[u8] ⓘ
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.