pub struct Refresh {
pub strategy: RefreshStrategy,
pub refresh_interval: Duration,
pub retry_interval: Duration,
}
Expand description
JWKS Refresh configuration
Fields§
§strategy: RefreshStrategy
§refresh_interval: Duration
After the refresh interval the store will/can be refreshed.
- RefreshStrategy::KeyNotFound - refresh will be performed only if a kid is not found in the store (if no kid is in the token header the alg is looked up)
- RefreshStrategy::Interval - refresh will be performed each time the refresh interval has elapsed (before checking a new token -> lazy behaviour)
retry_interval: Duration
don’t refresh before (after an error or jwks is unawailable) (we let a little bit of time to the jwks endpoint to recover)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Refresh
impl RefUnwindSafe for Refresh
impl Send for Refresh
impl Sync for Refresh
impl Unpin for Refresh
impl UnwindSafe for Refresh
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