Enum graph_oauth::PollDeviceCodeEvent
source · pub enum PollDeviceCodeEvent {
AuthorizationPending,
AuthorizationDeclined,
BadVerificationCode,
ExpiredToken,
AccessDenied,
SlowDown,
}
Expand description
Response types used when polling for a device code https://datatracker.ietf.org/doc/html/rfc8628#section-3.5
Variants§
AuthorizationPending
The user hasn’t finished authenticating, but hasn’t canceled the flow. Repeat the request after at least interval seconds.
AuthorizationDeclined
The end user denied the authorization request. Stop polling and revert to an unauthenticated state.
BadVerificationCode
The device_code sent to the /token endpoint wasn’t recognized. Verify that the client is sending the correct device_code in the request.
ExpiredToken
Value of expires_in has been exceeded and authentication is no longer possible with device_code. Stop polling and revert to an unauthenticated state.
AccessDenied
Not yet supported by Microsoft but listed in the specification.
The authorization request was denied.
SlowDown
Not yet supported by Microsoft but listed in the specification.
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.
Implementations§
Trait Implementations§
source§impl AsRef<str> for PollDeviceCodeEvent
impl AsRef<str> for PollDeviceCodeEvent
source§impl Clone for PollDeviceCodeEvent
impl Clone for PollDeviceCodeEvent
source§fn clone(&self) -> PollDeviceCodeEvent
fn clone(&self) -> PollDeviceCodeEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PollDeviceCodeEvent
impl Debug for PollDeviceCodeEvent
source§impl<'de> Deserialize<'de> for PollDeviceCodeEvent
impl<'de> Deserialize<'de> for PollDeviceCodeEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Display for PollDeviceCodeEvent
impl Display for PollDeviceCodeEvent
source§impl FromStr for PollDeviceCodeEvent
impl FromStr for PollDeviceCodeEvent
source§impl PartialEq for PollDeviceCodeEvent
impl PartialEq for PollDeviceCodeEvent
source§fn eq(&self, other: &PollDeviceCodeEvent) -> bool
fn eq(&self, other: &PollDeviceCodeEvent) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PollDeviceCodeEvent
impl Serialize for PollDeviceCodeEvent
impl Copy for PollDeviceCodeEvent
impl Eq for PollDeviceCodeEvent
impl StructuralPartialEq for PollDeviceCodeEvent
Auto Trait Implementations§
impl Freeze for PollDeviceCodeEvent
impl RefUnwindSafe for PollDeviceCodeEvent
impl Send for PollDeviceCodeEvent
impl Sync for PollDeviceCodeEvent
impl Unpin for PollDeviceCodeEvent
impl UnwindSafe for PollDeviceCodeEvent
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<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.