pub enum DeviceCodeErrorResponseType {
AuthorizationPending,
SlowDown,
AccessDenied,
ExpiredToken,
Basic(BasicErrorResponseType),
}
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 more