pub enum OidcErrorCode {
Show 24 variants
InvalidRequest,
InvalidClient,
InvalidGrant,
UnauthorizedClient,
UnsupportedGrantType,
InvalidScope,
InteractionRequired,
LoginRequired,
AccountSelectionRequired,
ConsentRequired,
InvalidRequestUri,
InvalidRequestObject,
RequestNotSupported,
RequestUriNotSupported,
RegistrationNotSupported,
UnmetAuthenticationRequirements,
UnmetAuthenticationContextRequirements,
SessionSelectionRequired,
AuthenticationMethodRequired,
InsufficientIdentityAssurance,
TemporarilyUnavailable,
RegistrationRequired,
UnsupportedPromptValue,
UserSelectionRequired,
}Expand description
Extended OpenID Connect error codes
Variants§
InvalidRequest
InvalidClient
InvalidGrant
UnsupportedGrantType
InvalidScope
InteractionRequired
LoginRequired
AccountSelectionRequired
ConsentRequired
InvalidRequestUri
InvalidRequestObject
RequestNotSupported
RequestUriNotSupported
RegistrationNotSupported
UnmetAuthenticationRequirements
Authentication requirements specified in the request were not met
UnmetAuthenticationContextRequirements
The requested authentication context class reference values were not satisfied
SessionSelectionRequired
Session selection required for multi-session scenarios
AuthenticationMethodRequired
The authorization server requires user authentication via a different method
InsufficientIdentityAssurance
The requested identity verification level could not be satisfied
The authorization server temporarily cannot service the request
RegistrationRequired
The request requires user registration/enrollment
UnsupportedPromptValue
The requested prompt value is not supported
UserSelectionRequired
Multiple matching users found, selection required
Implementations§
Source§impl OidcErrorCode
impl OidcErrorCode
Sourcepub fn get_description(&self) -> &'static str
pub fn get_description(&self) -> &'static str
Get standard error description for error code
Sourcepub fn requires_interaction(&self) -> bool
pub fn requires_interaction(&self) -> bool
Check if this error code requires user interaction
Sourcepub fn is_authentication_error(&self) -> bool
pub fn is_authentication_error(&self) -> bool
Check if this error code indicates an authentication issue
Trait Implementations§
Source§impl Clone for OidcErrorCode
impl Clone for OidcErrorCode
Source§fn clone(&self) -> OidcErrorCode
fn clone(&self) -> OidcErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OidcErrorCode
impl Debug for OidcErrorCode
Source§impl<'de> Deserialize<'de> for OidcErrorCode
impl<'de> Deserialize<'de> for OidcErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OidcErrorCode
impl PartialEq for OidcErrorCode
Source§impl Serialize for OidcErrorCode
impl Serialize for OidcErrorCode
impl StructuralPartialEq for OidcErrorCode
Auto Trait Implementations§
impl Freeze for OidcErrorCode
impl RefUnwindSafe for OidcErrorCode
impl Send for OidcErrorCode
impl Sync for OidcErrorCode
impl Unpin for OidcErrorCode
impl UnwindSafe for OidcErrorCode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more