pub struct VerifyOptions<'a> {
pub issuer: &'a str,
pub audience: &'a str,
pub nonce: Option<&'a str>,
pub max_age_sec: Option<i64>,
pub clock_skew_sec: Option<i64>,
pub http: &'a dyn HttpClient,
pub cache: &'a dyn Cache<String, Jwks>,
}Expand description
Options for verifying ID tokens
Fields§
§issuer: &'a strExpected issuer
audience: &'a strExpected audience
nonce: Option<&'a str>Expected nonce (if any)
max_age_sec: Option<i64>Maximum age in seconds (for auth_time validation)
clock_skew_sec: Option<i64>Clock skew tolerance in seconds
http: &'a dyn HttpClientHTTP client for fetching JWKS
cache: &'a dyn Cache<String, Jwks>Cache for JWKS
Trait Implementations§
Source§impl<'a> Clone for VerifyOptions<'a>
impl<'a> Clone for VerifyOptions<'a>
Source§fn clone(&self) -> VerifyOptions<'a>
fn clone(&self) -> VerifyOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for VerifyOptions<'a>
impl<'a> !RefUnwindSafe for VerifyOptions<'a>
impl<'a> Send for VerifyOptions<'a>
impl<'a> Sync for VerifyOptions<'a>
impl<'a> Unpin for VerifyOptions<'a>
impl<'a> !UnwindSafe for VerifyOptions<'a>
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