pub struct Pkce {
pub verifier: SensitiveString,
pub challenge: String,
}Expand description
A code verifier and the challenge derived from it, for the S256 PKCE flow. The verifier
is the secret half — whoever holds it can redeem the code — so it prints as
[REDACTED]; the challenge goes out in the authorization URL and is public.
Fields§
§verifier: SensitiveStringThe secret half, redeemed with the code at the token endpoint.
challenge: StringThe public half, sent in the authorization URL.
Trait Implementations§
impl Eq for Pkce
impl StructuralPartialEq for Pkce
Auto Trait Implementations§
impl Freeze for Pkce
impl RefUnwindSafe for Pkce
impl Send for Pkce
impl Sync for Pkce
impl Unpin for Pkce
impl UnsafeUnpin for Pkce
impl UnwindSafe for Pkce
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.