pub struct OidcConfig {
pub issuer: String,
pub audience: String,
pub jwks_url: String,
pub algorithms: Vec<Algorithm>,
pub jwks_ttl: Duration,
}Expand description
OIDC validation settings.
Fields§
§issuer: StringExpected issuer claim.
audience: StringExpected audience claim.
jwks_url: StringJWKS endpoint used to resolve signing keys.
algorithms: Vec<Algorithm>Accepted signing algorithms.
jwks_ttl: DurationHow long fetched JWKS keys are cached before re-fetching.
The cache is also refreshed eagerly when a token references an unknown
kid, so key rotation at the IdP is picked up without a restart.
Implementations§
Trait Implementations§
Source§impl Clone for OidcConfig
impl Clone for OidcConfig
Source§fn clone(&self) -> OidcConfig
fn clone(&self) -> OidcConfig
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 OidcConfig
impl RefUnwindSafe for OidcConfig
impl Send for OidcConfig
impl Sync for OidcConfig
impl Unpin for OidcConfig
impl UnsafeUnpin for OidcConfig
impl UnwindSafe for OidcConfig
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