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