pub enum OAuth2ErrorApiResponse {
InvalidRequest {
error_description: Option<String>,
},
InvalidGrant {
error_description: Option<InvalidGrantError>,
},
InvalidClient {
error_description: Option<String>,
},
UnauthorizedClient {
error_description: Option<String>,
},
UnsupportedGrantType {
error_description: Option<String>,
},
InvalidScope {
error_description: Option<String>,
},
InvalidTarget {
error_description: Option<String>,
},
}Expand description
Per RFC 6749 Section 5.2, these are the standard error responses for OAuth 2.0 token requests. https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
Variants§
InvalidRequest
Invalid request error, typically due to missing parameters for a specific
credential flow. Ex. password is required.
InvalidGrant
Invalid grant error, typically due to invalid credentials.
Fields
error_description: Option<InvalidGrantError>The optional error description for invalid grant errors.
InvalidClient
Invalid client error, typically due to an invalid client secret or client ID.
Unauthorized client error, typically due to an unauthorized client.
Fields
The optional error description for unauthorized client errors.
UnsupportedGrantType
Unsupported grant type error, typically due to an unsupported credential flow.
Fields
InvalidScope
Invalid scope error, typically due to an invalid scope requested.
InvalidTarget
Invalid target error which is shown if the requested resource is invalid, missing, unknown, or malformed.
Trait Implementations§
Source§impl Debug for OAuth2ErrorApiResponse
impl Debug for OAuth2ErrorApiResponse
Source§impl<'de> Deserialize<'de> for OAuth2ErrorApiResponse
impl<'de> Deserialize<'de> for OAuth2ErrorApiResponse
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 PartialEq for OAuth2ErrorApiResponse
impl PartialEq for OAuth2ErrorApiResponse
impl Eq for OAuth2ErrorApiResponse
impl StructuralPartialEq for OAuth2ErrorApiResponse
Auto Trait Implementations§
impl Freeze for OAuth2ErrorApiResponse
impl RefUnwindSafe for OAuth2ErrorApiResponse
impl Send for OAuth2ErrorApiResponse
impl Sync for OAuth2ErrorApiResponse
impl Unpin for OAuth2ErrorApiResponse
impl UnwindSafe for OAuth2ErrorApiResponse
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§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