pub struct PkceChallenge {
pub code_verifier: String,
pub code_challenge: String,
pub code_challenge_method: String,
}Expand description
A PKCE code verifier + S256 challenge (RFC 7636).
The Debug impl redacts code_verifier (the PKCE secret).
Fields§
§code_verifier: StringThe high-entropy secret to keep and send when exchanging the authorization code
(mgr.auth.token("authorization_code", TokenRequest { code_verifier: Some(..), .. })).
code_challenge: StringThe base64url(SHA-256(code_verifier)) value to pass to build_authorize_url.
code_challenge_method: StringAlways "S256".
Trait Implementations§
Source§impl Clone for PkceChallenge
impl Clone for PkceChallenge
Source§fn clone(&self) -> PkceChallenge
fn clone(&self) -> PkceChallenge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PkceChallenge
impl RefUnwindSafe for PkceChallenge
impl Send for PkceChallenge
impl Sync for PkceChallenge
impl Unpin for PkceChallenge
impl UnsafeUnpin for PkceChallenge
impl UnwindSafe for PkceChallenge
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