pub enum OIDCErrorCode {
InvalidRequest,
UnauthorizedClient,
UnsupportedResponseType,
InvalidScope,
ServerError,
TemporarilyUnavailable,
InvalidClient,
InvalidGrant,
AccessDenied,
}Variants§
InvalidRequest
The request is missing a required parameter, includes aninvalid parameter value, includes a parameter more than once, or is otherwise malformed.
The client is not authorized to request an authorization code using this method.
UnsupportedResponseType
The authorization server does not support obtaining an authorization code 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 an 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 an HTTP redirect.)
InvalidClient
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate via the “Authorization” request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code and include the “WWW-Authenticate” response header field matching the authentication scheme used by the client.
InvalidGrant
The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
AccessDenied
Trait Implementations§
Source§impl Debug for OIDCErrorCode
impl Debug for OIDCErrorCode
Source§impl From<&OIDCErrorCode> for &str
impl From<&OIDCErrorCode> for &str
Source§fn from(code: &OIDCErrorCode) -> Self
fn from(code: &OIDCErrorCode) -> Self
Auto Trait Implementations§
impl Freeze for OIDCErrorCode
impl RefUnwindSafe for OIDCErrorCode
impl Send for OIDCErrorCode
impl Sync for OIDCErrorCode
impl Unpin for OIDCErrorCode
impl UnwindSafe for OIDCErrorCode
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
§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