Enum auth0_client::JWTValidation
source · pub enum JWTValidation {
Issuer(String),
Audience(String),
SubjectPresent,
NotExpired,
}
Expand description
Possible token claim validations. This enumeration only covers common use-cases, for other types of validations the user is encouraged to inspect the claim set manually.
Variants§
Issuer(String)
Validate that the issuer (“iss”) claim matches a specified value.
Audience(String)
Validate that the audience (“aud”) claim matches a specified value.
SubjectPresent
Validate that a subject value is present.
NotExpired
Validate that the expiry time of the token (“exp”-claim) has not yet been reached.
Auto Trait Implementations§
impl Freeze for Validation
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnwindSafe for Validation
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