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 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,
§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