pub struct Pkce { /* private fields */ }Expand description
A PKCE secret pair, as described by RFC 7636.
The verifier is kept private until the token exchange; the challenge is
what gets sent in the authorization request. Only the challenge travels over
the initial redirect, so an eavesdropper who intercepts the authorization
code cannot exchange it without the verifier.
Keep the verifier out of URLs and off insecure connections. For fully client-side apps the user themselves can always extract it, which is fine.
Implementations§
Trait Implementations§
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