pub enum OAuthClientError {
Show 14 variants
AuthorizationServerRequestFailed(Error),
MalformedAuthorizationServerResponse(Error),
InvalidAuthorizationServerResponse(Error),
InvalidOAuthProtectedResource,
OAuthProtectedResourceRequestFailed(Error),
MalformedOAuthProtectedResourceResponse(Error),
InvalidOAuthProtectedResourceResponse(Error),
MintTokenFailed(Error),
JWTHeaderCreationFailed(Error),
DpopTokenCreationFailed(Error),
PARHttpRequestFailed(Error),
PARResponseJsonParsingFailed(Error),
TokenHttpRequestFailed(Error),
TokenResponseJsonParsingFailed(Error),
}
Expand description
Represents errors that can occur during OAuth client operations.
These errors are related to the OAuth client functionality, including interacting with authorization servers, protected resources, and token management.
Variants§
AuthorizationServerRequestFailed(Error)
Error when a request to the authorization server fails.
This error occurs when the OAuth client fails to establish a connection or complete a request to the authorization server.
MalformedAuthorizationServerResponse(Error)
Error when the authorization server response is malformed.
This error occurs when the response from the authorization server cannot be properly parsed or processed.
InvalidAuthorizationServerResponse(Error)
Error when the authorization server response is invalid.
This error occurs when the response from the authorization server is well-formed but contains invalid or unexpected data.
InvalidOAuthProtectedResource
Error when an OAuth protected resource is invalid.
This error occurs when trying to access a protected resource that is not properly configured for OAuth access.
OAuthProtectedResourceRequestFailed(Error)
Error when a request to an OAuth protected resource fails.
This error occurs when the OAuth client fails to establish a connection or complete a request to a protected resource.
MalformedOAuthProtectedResourceResponse(Error)
Error when a protected resource response is malformed.
This error occurs when the response from a protected resource cannot be properly parsed or processed.
InvalidOAuthProtectedResourceResponse(Error)
Error when a protected resource response is invalid.
This error occurs when the response from a protected resource is well-formed but contains invalid or unexpected data.
MintTokenFailed(Error)
Error when token minting fails.
This error occurs when the system fails to mint (create) a new OAuth token, typically due to cryptographic or validation issues.
JWTHeaderCreationFailed(Error)
Error when JWT header creation from key data fails.
This error occurs when attempting to create a JWT header from cryptographic key data during OAuth workflow operations.
DpopTokenCreationFailed(Error)
Error when DPoP token creation fails.
This error occurs when attempting to create a DPoP proof token during OAuth workflow operations.
PARHttpRequestFailed(Error)
Error when PAR (Pushed Authorization Request) HTTP request fails.
This error occurs when the HTTP request to the pushed authorization request endpoint fails during OAuth workflow operations.
PARResponseJsonParsingFailed(Error)
Error when PAR response JSON parsing fails.
This error occurs when the response from the pushed authorization request endpoint cannot be parsed as JSON.
TokenHttpRequestFailed(Error)
Error when token endpoint HTTP request fails.
This error occurs when the HTTP request to the token endpoint fails during OAuth token exchange operations.
TokenResponseJsonParsingFailed(Error)
Error when token response JSON parsing fails.
This error occurs when the response from the token endpoint cannot be parsed as JSON.
Trait Implementations§
Source§impl Debug for OAuthClientError
impl Debug for OAuthClientError
Source§impl Display for OAuthClientError
impl Display for OAuthClientError
Source§impl Error for OAuthClientError
impl Error for OAuthClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for OAuthClientError
impl !RefUnwindSafe for OAuthClientError
impl Send for OAuthClientError
impl Sync for OAuthClientError
impl Unpin for OAuthClientError
impl !UnwindSafe for OAuthClientError
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
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.