pub enum AuthorizationResponseError {
IssuerMismatch {
expected: String,
presented: String,
},
IssuerMissing,
}Expand description
Why an authorization response was refused.
Owned strings rather than borrows: the caller has &str for both issuers and
has no reason to be told it must keep them alive to read the error.
Variants§
IssuerMismatch
The response named an issuer other than the one the client asked.
RFC 9207 §2.1: the client “MUST reject the authorization response and MUST NOT proceed with the authorization grant”. The classic mix-up — the code and the token endpoint now belong to different servers.
Fields
IssuerMissing
The server advertised authorization_response_iss_parameter_supported
and the response carried no iss.
RFC 9207 §2.4: such a server must always send it, so a response without one did not come from the server the client asked.
Trait Implementations§
Source§impl Clone for AuthorizationResponseError
impl Clone for AuthorizationResponseError
Source§impl Debug for AuthorizationResponseError
impl Debug for AuthorizationResponseError
Source§impl Display for AuthorizationResponseError
impl Display for AuthorizationResponseError
impl Eq for AuthorizationResponseError
Source§impl Error for AuthorizationResponseError
impl Error for AuthorizationResponseError
1.30.0 · 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<AuthorizationResponseError> for CallbackError
impl From<AuthorizationResponseError> for CallbackError
Source§fn from(source: AuthorizationResponseError) -> Self
fn from(source: AuthorizationResponseError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for AuthorizationResponseError
Auto Trait Implementations§
impl Freeze for AuthorizationResponseError
impl RefUnwindSafe for AuthorizationResponseError
impl Send for AuthorizationResponseError
impl Sync for AuthorizationResponseError
impl Unpin for AuthorizationResponseError
impl UnsafeUnpin for AuthorizationResponseError
impl UnwindSafe for AuthorizationResponseError
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