pub enum OAuthErrorCode {
InvalidRequest,
InvalidClient,
InvalidGrant,
UnauthorizedClient,
UnsupportedGrantType,
UnsupportedResponseType,
InvalidScope,
AccessDenied,
ServerError,
InvalidDpopProof,
UseDpopNonce,
}Expand description
One of the error values RFC 6749 and its extensions define, restricted
to the ones this server’s endpoints actually raise.
Variants§
InvalidRequest
A required parameter is missing, malformed, or repeated.
InvalidClient
The client is not recognised, or its metadata does not check out.
InvalidGrant
The authorization code, refresh token, or PAR request_uri presented
is unknown, expired, already used, or was issued to a different
client.
This client is not permitted to use the grant type it asked for.
UnsupportedGrantType
grant_type named something this server does not implement.
UnsupportedResponseType
response_type named something other than code.
InvalidScope
The requested scope is outside what this token may be issued —
including every refusal plan/scope-policy.md’s ceiling will
eventually make, and every one it makes today by not existing yet.
AccessDenied
The resource owner (or, here, the policy standing in for one) refused the request. This is the consent seam’s own refusal.
ServerError
Something on this server’s side, not the caller’s request.
InvalidDpopProof
The DPoP proof is missing or does not check out (RFC 9449 §5).
UseDpopNonce
The DPoP proof carries no nonce this server accepts (RFC 9449 §8).
The answer names the nonce to retry with in DPoP-Nonce.
Implementations§
Trait Implementations§
Source§impl Clone for OAuthErrorCode
impl Clone for OAuthErrorCode
Source§fn clone(&self) -> OAuthErrorCode
fn clone(&self) -> OAuthErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OAuthErrorCode
impl Debug for OAuthErrorCode
Source§impl PartialEq for OAuthErrorCode
impl PartialEq for OAuthErrorCode
Source§fn eq(&self, other: &OAuthErrorCode) -> bool
fn eq(&self, other: &OAuthErrorCode) -> bool
self and other values to be equal, and is used by ==.impl Copy for OAuthErrorCode
impl Eq for OAuthErrorCode
impl StructuralPartialEq for OAuthErrorCode
Auto Trait Implementations§
impl Freeze for OAuthErrorCode
impl RefUnwindSafe for OAuthErrorCode
impl Send for OAuthErrorCode
impl Sync for OAuthErrorCode
impl Unpin for OAuthErrorCode
impl UnsafeUnpin for OAuthErrorCode
impl UnwindSafe for OAuthErrorCode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> 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