pub enum DeviceCodeErrorResponseType {
AuthorizationPending,
SlowDown,
AccessDenied,
ExpiredToken,
Basic(BasicErrorResponseType),
}
experimental-oidc
and crate feature e2e-encryption
and non-WebAssembly only.Expand description
Basic access token error types.
These error types are defined in Section 5.2 of RFC 6749 and Section 3.5 of RFC 6749
Variants§
AuthorizationPending
The authorization request is still pending as the end user hasn’t yet completed the user-interaction steps. The client SHOULD repeat the access token request to the token endpoint. Before each new request, the client MUST wait at least the number of seconds specified by the “interval” parameter of the device authorization response, or 5 seconds if none was provided, and respect any increase in the polling interval required by the “slow_down” error.
SlowDown
A variant of “authorization_pending”, the authorization request is still pending and polling should continue, but the interval MUST be increased by 5 seconds for this and all subsequent requests.
AccessDenied
The authorization request was denied.
ExpiredToken
The “device_code” has expired, and the device authorization session has concluded. The client MAY commence a new device authorization request but SHOULD wait for user interaction before restarting to avoid unnecessary polling.
Basic(BasicErrorResponseType)
A Basic response type
Trait Implementations§
source§impl AsRef<str> for DeviceCodeErrorResponseType
impl AsRef<str> for DeviceCodeErrorResponseType
source§impl Clone for DeviceCodeErrorResponseType
impl Clone for DeviceCodeErrorResponseType
source§fn clone(&self) -> DeviceCodeErrorResponseType
fn clone(&self) -> DeviceCodeErrorResponseType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceCodeErrorResponseType
impl Debug for DeviceCodeErrorResponseType
source§impl<'de> Deserialize<'de> for DeviceCodeErrorResponseType
impl<'de> Deserialize<'de> for DeviceCodeErrorResponseType
source§fn deserialize<D>(
deserializer: D,
) -> Result<DeviceCodeErrorResponseType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<DeviceCodeErrorResponseType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
source§impl PartialEq for DeviceCodeErrorResponseType
impl PartialEq for DeviceCodeErrorResponseType
source§fn eq(&self, other: &DeviceCodeErrorResponseType) -> bool
fn eq(&self, other: &DeviceCodeErrorResponseType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DeviceCodeErrorResponseType
impl Serialize for DeviceCodeErrorResponseType
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Eq for DeviceCodeErrorResponseType
impl ErrorResponseType for DeviceCodeErrorResponseType
impl StructuralPartialEq for DeviceCodeErrorResponseType
Auto Trait Implementations§
impl Freeze for DeviceCodeErrorResponseType
impl RefUnwindSafe for DeviceCodeErrorResponseType
impl Send for DeviceCodeErrorResponseType
impl Sync for DeviceCodeErrorResponseType
impl Unpin for DeviceCodeErrorResponseType
impl UnwindSafe for DeviceCodeErrorResponseType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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