pub enum PkceError {
UnknownMethod(String),
MethodNotPermitted {
method: PkceMethod,
},
MalformedVerifier(String),
Mismatch,
}Expand description
Why a PKCE verification failed.
Variants§
UnknownMethod(String)
The code_challenge_method is not one this server knows. A client bug:
report it back as invalid_request.
MethodNotPermitted
The method is known but refused by policy. A server decision, not a client error.
Fields
§
method: PkceMethodThe method the client asked for.
MalformedVerifier(String)
The verifier does not satisfy RFC 7636 §4.1’s syntax.
Mismatch
The verifier and challenge do not correspond.
Trait Implementations§
impl Eq for PkceError
Source§impl Error for PkceError
impl Error for PkceError
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()
impl StructuralPartialEq for PkceError
Auto Trait Implementations§
impl Freeze for PkceError
impl RefUnwindSafe for PkceError
impl Send for PkceError
impl Sync for PkceError
impl Unpin for PkceError
impl UnsafeUnpin for PkceError
impl UnwindSafe for PkceError
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