pub enum OAuthCallbackError {
NoOAuthRequestFound,
InvalidIssuer {
expected: String,
actual: String,
},
NoDIDDocumentFound,
NoSigningKeyFound,
OperationFailed {
error: Error,
},
KeyOperationFailed {
error: KeyError,
},
OAuthClientOperationFailed {
error: OAuthClientError,
},
}
Expand description
Error types that can occur during OAuth callback handling.
These errors represent failures in the OAuth authorization callback flow including request validation and token exchange operations.
Variants§
NoOAuthRequestFound
Occurs when no OAuth request is found for the provided state parameter
InvalidIssuer
Occurs when the issuer in the callback doesn’t match the stored OAuth request
Fields
NoDIDDocumentFound
Occurs when no DID document is found for the OAuth request
NoSigningKeyFound
Occurs when no signing key is found for the OAuth request
OperationFailed
Occurs when an underlying operation fails with an anyhow error
KeyOperationFailed
Occurs when key operations fail
OAuthClientOperationFailed
Occurs when OAuth client operations fail
Fields
§
error: OAuthClientError
The underlying OAuth client error
Trait Implementations§
Source§impl Debug for OAuthCallbackError
impl Debug for OAuthCallbackError
Source§impl Display for OAuthCallbackError
impl Display for OAuthCallbackError
Source§impl Error for OAuthCallbackError
impl Error for OAuthCallbackError
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()
Source§impl From<Error> for OAuthCallbackError
impl From<Error> for OAuthCallbackError
Source§impl From<KeyError> for OAuthCallbackError
impl From<KeyError> for OAuthCallbackError
Source§impl From<OAuthClientError> for OAuthCallbackError
impl From<OAuthClientError> for OAuthCallbackError
Source§fn from(error: OAuthClientError) -> Self
fn from(error: OAuthClientError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for OAuthCallbackError
impl IntoResponse for OAuthCallbackError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for OAuthCallbackError
impl !RefUnwindSafe for OAuthCallbackError
impl Send for OAuthCallbackError
impl Sync for OAuthCallbackError
impl Unpin for OAuthCallbackError
impl !UnwindSafe for OAuthCallbackError
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
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.