pub enum DeviceAuhorizationOidcError {
Oidc(OidcError),
InvalidIssuerUrl(ParseError),
Configuration(ConfigurationError),
AuthenticationIssuer(HttpError),
DeviceAuthorization(RequestTokenError<HttpClientError<Error>, StandardErrorResponse<CoreErrorResponseType>>),
RequestToken(RequestTokenError<HttpClientError<Error>, StandardErrorResponse<DeviceCodeErrorResponseType>>),
Discovery(DiscoveryError<HttpClientError<Error>>),
}
experimental-oidc
and crate feature e2e-encryption
and non-WebAssembly only.Expand description
Error type describing failures in the interaction between the device attempting to log in and the OIDC provider.
Variants§
Oidc(OidcError)
A generic OIDC error happened while we were attempting to register the device with the OIDC provider.
InvalidIssuerUrl(ParseError)
The issuer URL failed to be parsed.
Configuration(ConfigurationError)
There was an error with our device configuration right before attempting to wait for the access token to be issued by the OIDC provider.
AuthenticationIssuer(HttpError)
An error happened while we attempted to discover the authentication issuer URL.
DeviceAuthorization(RequestTokenError<HttpClientError<Error>, StandardErrorResponse<CoreErrorResponseType>>)
An error happened while we attempted to request a device authorization from the OIDC provider.
RequestToken(RequestTokenError<HttpClientError<Error>, StandardErrorResponse<DeviceCodeErrorResponseType>>)
An error happened while waiting for the access token to be issued and sent to us by the OIDC provider.
Discovery(DiscoveryError<HttpClientError<Error>>)
An error happened during the discovery of the OIDC provider metadata.
Implementations§
source§impl DeviceAuhorizationOidcError
impl DeviceAuhorizationOidcError
sourcepub fn as_request_token_error(&self) -> Option<&DeviceCodeErrorResponseType>
pub fn as_request_token_error(&self) -> Option<&DeviceCodeErrorResponseType>
If the DeviceAuhorizationOidcError
is of the
DeviceCodeErrorResponseType
error variant, return it.
Trait Implementations§
source§impl Debug for DeviceAuhorizationOidcError
impl Debug for DeviceAuhorizationOidcError
source§impl Error for DeviceAuhorizationOidcError
impl Error for DeviceAuhorizationOidcError
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<ConfigurationError> for DeviceAuhorizationOidcError
impl From<ConfigurationError> for DeviceAuhorizationOidcError
source§fn from(source: ConfigurationError) -> Self
fn from(source: ConfigurationError) -> Self
source§impl From<DeviceAuhorizationOidcError> for QRCodeLoginError
impl From<DeviceAuhorizationOidcError> for QRCodeLoginError
source§fn from(source: DeviceAuhorizationOidcError) -> Self
fn from(source: DeviceAuhorizationOidcError) -> Self
source§impl From<DiscoveryError<HttpClientError<Error>>> for DeviceAuhorizationOidcError
impl From<DiscoveryError<HttpClientError<Error>>> for DeviceAuhorizationOidcError
source§fn from(source: DiscoveryError<HttpClientError<Error>>) -> Self
fn from(source: DiscoveryError<HttpClientError<Error>>) -> Self
source§impl From<OidcError> for DeviceAuhorizationOidcError
impl From<OidcError> for DeviceAuhorizationOidcError
source§impl From<ParseError> for DeviceAuhorizationOidcError
impl From<ParseError> for DeviceAuhorizationOidcError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
source§impl From<RequestTokenError<HttpClientError<Error>, StandardErrorResponse<BasicErrorResponseType>>> for DeviceAuhorizationOidcError
impl From<RequestTokenError<HttpClientError<Error>, StandardErrorResponse<BasicErrorResponseType>>> for DeviceAuhorizationOidcError
source§fn from(
source: RequestTokenError<HttpClientError<Error>, StandardErrorResponse<CoreErrorResponseType>>,
) -> Self
fn from( source: RequestTokenError<HttpClientError<Error>, StandardErrorResponse<CoreErrorResponseType>>, ) -> Self
source§impl From<RequestTokenError<HttpClientError<Error>, StandardErrorResponse<DeviceCodeErrorResponseType>>> for DeviceAuhorizationOidcError
impl From<RequestTokenError<HttpClientError<Error>, StandardErrorResponse<DeviceCodeErrorResponseType>>> for DeviceAuhorizationOidcError
source§fn from(
source: RequestTokenError<HttpClientError<Error>, StandardErrorResponse<DeviceCodeErrorResponseType>>,
) -> Self
fn from( source: RequestTokenError<HttpClientError<Error>, StandardErrorResponse<DeviceCodeErrorResponseType>>, ) -> Self
Auto Trait Implementations§
impl !Freeze for DeviceAuhorizationOidcError
impl !RefUnwindSafe for DeviceAuhorizationOidcError
impl Send for DeviceAuhorizationOidcError
impl Sync for DeviceAuhorizationOidcError
impl Unpin for DeviceAuhorizationOidcError
impl !UnwindSafe for DeviceAuhorizationOidcError
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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