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 more