pub struct EasyAuth { /* private fields */ }Implementations§
Source§impl EasyAuth
impl EasyAuth
Sourcepub fn from_jwks_json(jwks_json: &str) -> Result<Self, AuthError>
pub fn from_jwks_json(jwks_json: &str) -> Result<Self, AuthError>
Sourcepub fn update_jwks(&self, jwks_json: &str) -> Result<(), AuthError>
pub fn update_jwks(&self, jwks_json: &str) -> Result<(), AuthError>
Hot-swap the JWKS keys without reconstructing the EasyAuth instance.
Call this when a KeyNotFound error indicates the signing keys have
been rotated and the current key set is stale.
Auto Trait Implementations§
impl !Freeze for EasyAuth
impl RefUnwindSafe for EasyAuth
impl Send for EasyAuth
impl Sync for EasyAuth
impl Unpin for EasyAuth
impl UnsafeUnpin for EasyAuth
impl UnwindSafe for EasyAuth
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