pub struct JwtConfig {
pub secret: Option<String>,
pub secret_is_base64: bool,
pub audience: Option<String>,
pub role_claim_key: String,
pub anon_role: Option<String>,
}Expand description
JWT configuration.
Fields§
§secret: Option<String>Secret key for HS256/HS384/HS512
secret_is_base64: boolWhether secret is base64 encoded
audience: Option<String>Required audience claim
role_claim_key: StringClaim key containing the role
anon_role: Option<String>Default role for anonymous requests
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwtConfig
impl RefUnwindSafe for JwtConfig
impl Send for JwtConfig
impl Sync for JwtConfig
impl Unpin for JwtConfig
impl UnwindSafe for JwtConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more