pub enum OidcError {
Configuration(String),
Discovery(String),
InvalidToken(String),
ProviderUnreachable(String),
StateMismatch,
MissingPkce,
NonceMismatch,
UnsupportedAlgorithm(String),
MissingClaim(String),
}Expand description
Errors from OIDC operations.
Variants§
Configuration(String)
Configuration is invalid or unsafe.
Discovery(String)
Discovery failed or returned an invalid document.
InvalidToken(String)
The token could not be validated.
ProviderUnreachable(String)
The OIDC provider could not be reached.
StateMismatch
Callback state mismatched the original request.
MissingPkce
Public clients must supply PKCE verifiers.
NonceMismatch
Nonce mismatched the validated ID token.
UnsupportedAlgorithm(String)
The provider or token selected an unsupported algorithm.
MissingClaim(String)
A required claim is missing.
Trait Implementations§
impl Eq for OidcError
Source§impl Error for OidcError
impl Error for OidcError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for OidcError
Auto Trait Implementations§
impl Freeze for OidcError
impl RefUnwindSafe for OidcError
impl Send for OidcError
impl Sync for OidcError
impl Unpin for OidcError
impl UnsafeUnpin for OidcError
impl UnwindSafe for OidcError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.