#[non_exhaustive]pub enum OAuthError {
Discovery(OAuthDiscoveryError),
ClientRegistration(OAuthClientRegistrationError),
NotRegistered,
NotAuthenticated,
AuthorizationCode(OAuthAuthorizationCodeError),
RefreshToken(OAuthRequestError<BasicErrorResponseType>),
Logout(OAuthTokenRevocationError),
LockError(CrossProcessRefreshLockError),
SessionMismatch,
}
Expand description
All errors that can occur when using the OAuth 2.0 API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Discovery(OAuthDiscoveryError)
An error occurred when discovering the authorization server’s issuer.
ClientRegistration(OAuthClientRegistrationError)
An error occurred when registering the client with the authorization server.
NotRegistered
The client has not registered while the operation requires it.
NotAuthenticated
The client is not authenticated while the request requires it.
AuthorizationCode(OAuthAuthorizationCodeError)
An error occurred using the OAuth 2.0 authorization code grant.
RefreshToken(OAuthRequestError<BasicErrorResponseType>)
An error occurred interacting with the OAuth 2.0 authorization server while refreshing the access token.
Logout(OAuthTokenRevocationError)
An error occurred revoking an OAuth 2.0 access token.
LockError(CrossProcessRefreshLockError)
e2e-encryption
only.An error occurred caused by the cross-process locks.
SessionMismatch
The user logged into a session that is different than the one the client is already using.
This only happens if the session was already restored, and the user logs into a new session that is different than the old one.
Trait Implementations§
Source§impl Debug for OAuthError
impl Debug for OAuthError
Source§impl Display for OAuthError
impl Display for OAuthError
Source§impl Error for OAuthError
impl Error for OAuthError
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
Source§impl From<CrossProcessRefreshLockError> for OAuthError
impl From<CrossProcessRefreshLockError> for OAuthError
Source§fn from(source: CrossProcessRefreshLockError) -> Self
fn from(source: CrossProcessRefreshLockError) -> Self
Source§impl From<OAuthAuthorizationCodeError> for OAuthError
impl From<OAuthAuthorizationCodeError> for OAuthError
Source§fn from(source: OAuthAuthorizationCodeError) -> Self
fn from(source: OAuthAuthorizationCodeError) -> Self
Source§impl From<OAuthClientRegistrationError> for OAuthError
impl From<OAuthClientRegistrationError> for OAuthError
Source§fn from(source: OAuthClientRegistrationError) -> Self
fn from(source: OAuthClientRegistrationError) -> Self
Source§impl From<OAuthDiscoveryError> for OAuthError
impl From<OAuthDiscoveryError> for OAuthError
Source§fn from(source: OAuthDiscoveryError) -> Self
fn from(source: OAuthDiscoveryError) -> Self
Source§impl From<OAuthError> for DeviceAuthorizationOAuthError
Available on crate feature e2e-encryption
and non-WebAssembly only.
impl From<OAuthError> for DeviceAuthorizationOAuthError
e2e-encryption
and non-WebAssembly only.Source§fn from(source: OAuthError) -> Self
fn from(source: OAuthError) -> Self
Source§impl From<OAuthError> for Error
impl From<OAuthError> for Error
Source§fn from(source: OAuthError) -> Self
fn from(source: OAuthError) -> Self
Source§impl From<OAuthTokenRevocationError> for OAuthError
impl From<OAuthTokenRevocationError> for OAuthError
Source§fn from(source: OAuthTokenRevocationError) -> Self
fn from(source: OAuthTokenRevocationError) -> Self
Auto Trait Implementations§
impl !Freeze for OAuthError
impl !RefUnwindSafe for OAuthError
impl Send for OAuthError
impl Sync for OAuthError
impl Unpin for OAuthError
impl !UnwindSafe for OAuthError
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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