pub struct OidcAuthMethod { /* private fields */ }Expand description
Shared by both OIDC login modes: fetches and caches discovery documents and JWKS per issuer so every login doesn’t round-trip to the IdP.
Implementations§
Source§impl OidcAuthMethod
impl OidcAuthMethod
pub fn new() -> Self
pub async fn load_config( storage: &dyn StorageBackend, ) -> AuthResult<Option<OidcConfig>>
pub async fn save_config( storage: &dyn StorageBackend, config: &OidcConfig, ) -> AuthResult<()>
Builds the URL to redirect a human to for interactive login,
stashing the CSRF state / nonce / PKCE verifier so login() can
validate them when the IdP calls back.
Trait Implementations§
Source§impl AuthMethod for OidcAuthMethod
impl AuthMethod for OidcAuthMethod
fn login<'life0, 'life1, 'async_trait>(
&'life0 self,
storage: &'life1 dyn StorageBackend,
request: LoginRequest,
) -> Pin<Box<dyn Future<Output = AuthResult<AuthOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for OidcAuthMethod
impl !RefUnwindSafe for OidcAuthMethod
impl !UnwindSafe for OidcAuthMethod
impl Send for OidcAuthMethod
impl Sync for OidcAuthMethod
impl Unpin for OidcAuthMethod
impl UnsafeUnpin for OidcAuthMethod
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