pub struct LogoutTokenOptions { /* private fields */ }Expand description
What MultiIssuerVerifier::verify_logout_token needs besides the token.
Implementations§
Source§impl LogoutTokenOptions
impl LogoutTokenOptions
Sourcepub fn new(client_id: impl Into<String>) -> Self
pub fn new(client_id: impl Into<String>) -> Self
The client id this relying party is: the logout token’s aud must name it.
Sourcepub fn with_client_ids(ids: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn with_client_ids(ids: impl IntoIterator<Item = impl Into<String>>) -> Self
A relying party known by several client ids.
Sourcepub fn with_now(self, unix_seconds: f64) -> Self
pub fn with_now(self, unix_seconds: f64) -> Self
The current time as unix seconds. For tests: the default is the system clock.
Sourcepub fn with_max_age(self, max_age: Duration) -> Self
pub fn with_max_age(self, max_age: Duration) -> Self
How old a token’s iat may be (default ten minutes). Zero is refused rather than disabling the bound.
Sourcepub fn with_consume_jti(
self,
consume: impl Fn(&str, f64) -> bool + Send + Sync + 'static,
) -> Self
pub fn with_consume_jti( self, consume: impl Fn(&str, f64) -> bool + Send + Sync + 'static, ) -> Self
Replay protection: consume(jti, expires_at) returns false for a jti seen before.
Sourcepub fn with_consume_jti_async(self, consume: ConsumeJti) -> Self
pub fn with_consume_jti_async(self, consume: ConsumeJti) -> Self
Replay protection that needs to await (a database, a cache).
Trait Implementations§
Source§impl Clone for LogoutTokenOptions
impl Clone for LogoutTokenOptions
Source§fn clone(&self) -> LogoutTokenOptions
fn clone(&self) -> LogoutTokenOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for LogoutTokenOptions
impl !RefUnwindSafe for LogoutTokenOptions
impl Send for LogoutTokenOptions
impl Sync for LogoutTokenOptions
impl Unpin for LogoutTokenOptions
impl UnsafeUnpin for LogoutTokenOptions
impl !UnwindSafe for LogoutTokenOptions
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