pub enum RedeemError {
ClientMismatch {
expected: ClientId,
presented: ClientId,
},
Endpoint(TokenEndpointError),
}Expand description
Why redeem did not produce a token.
Variants§
ClientMismatch
The registration presented does not match the client that started the exchange.
redeem compares rather than trusting, because the client id is a
parameter the adapter is about to send: a caller that reached for the
wrong registration would otherwise produce a token request naming one
client with a code_verifier generated for another, and the server’s
answer would be an invalid_grant with nothing to explain it.
Fields
Endpoint(TokenEndpointError)
The endpoint refused, or could not be reached.
Trait Implementations§
Source§impl Clone for RedeemError
impl Clone for RedeemError
Source§impl Debug for RedeemError
impl Debug for RedeemError
Source§impl Display for RedeemError
impl Display for RedeemError
impl Eq for RedeemError
Source§impl Error for RedeemError
impl Error for RedeemError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RedeemError> for AuthorizeError
impl From<RedeemError> for AuthorizeError
Source§fn from(source: RedeemError) -> Self
fn from(source: RedeemError) -> Self
Converts to this type from the input type.
Source§impl From<TokenEndpointError> for RedeemError
impl From<TokenEndpointError> for RedeemError
Source§fn from(source: TokenEndpointError) -> Self
fn from(source: TokenEndpointError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RedeemError
impl PartialEq for RedeemError
impl StructuralPartialEq for RedeemError
Auto Trait Implementations§
impl Freeze for RedeemError
impl RefUnwindSafe for RedeemError
impl Send for RedeemError
impl Sync for RedeemError
impl Unpin for RedeemError
impl UnsafeUnpin for RedeemError
impl UnwindSafe for RedeemError
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
Mutably borrows from an owned value. Read more