pub enum AuthorizationResponseError {
InvalidRequest,
UnauthorizedClient,
AccessDenied,
UnsupportedResponseType,
InvalidScope,
ServerError,
TemporarilyUnavailable,
InvalidResource,
LoginRequired,
InteractionRequired,
}
Expand description
The specification defines errors here: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-31#section-4.2.2.1
Microsoft has additional errors listed here: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#error-codes-for-authorization-endpoint-errors
Variants§
InvalidRequest
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
The client is not authorized to request an access token using this method.
AccessDenied
The resource owner or authorization server denied the request.
UnsupportedResponseType
The authorization server does not support obtaining an access token using this method
InvalidScope
The requested scope is invalid, unknown, or malformed.
ServerError
The authorization server encountered an unexpected condition that prevented it from fulfilling the request. (This error code is needed because a 500 Internal Server Error HTTP status code cannot be returned to the client via a HTTP redirect.)
The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server. (This error code is needed because a 503 Service Unavailable HTTP status code cannot be returned to the client via a HTTP redirect.)
InvalidResource
The target resource is invalid because it doesn’t exist, Microsoft Entra ID can’t find it, or it’s not correctly configured.
The client requested silent authentication (prompt=none), but a single user couldn’t be found. This error may mean there are multiple users active in the session, or no users. This error takes into account the tenant chosen. For example, if there are two Microsoft Entra accounts active and one Microsoft account, and consumers is chosen, silent authentication works.
LoginRequired
Too many or no users found. The client requested silent authentication (prompt=none), but a single user couldn’t be found. This error may mean there are multiple users active in the session, or no users. This error takes into account the tenant chosen. For example, if there are two Microsoft Entra accounts active and one Microsoft account, and consumers is chosen, silent authentication works.
InteractionRequired
The request requires user interaction. Another authentication step or consent is required. Retry the request without prompt=none.
Trait Implementations§
source§impl Clone for AuthorizationResponseError
impl Clone for AuthorizationResponseError
source§fn clone(&self) -> AuthorizationResponseError
fn clone(&self) -> AuthorizationResponseError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthorizationResponseError
impl Debug for AuthorizationResponseError
source§impl<'de> Deserialize<'de> for AuthorizationResponseError
impl<'de> Deserialize<'de> for AuthorizationResponseError
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 AuthorizationResponseError
impl Display for AuthorizationResponseError
source§impl PartialEq for AuthorizationResponseError
impl PartialEq for AuthorizationResponseError
source§fn eq(&self, other: &AuthorizationResponseError) -> bool
fn eq(&self, other: &AuthorizationResponseError) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for AuthorizationResponseError
impl StructuralPartialEq for AuthorizationResponseError
Auto Trait Implementations§
impl Freeze for AuthorizationResponseError
impl RefUnwindSafe for AuthorizationResponseError
impl Send for AuthorizationResponseError
impl Sync for AuthorizationResponseError
impl Unpin for AuthorizationResponseError
impl UnwindSafe for AuthorizationResponseError
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.