Struct oauth2::PkceCodeChallenge [−][src]
pub struct PkceCodeChallenge { /* fields omitted */ }Expand description
Code Challenge used for PKCE protection via the
code_challenge parameter.
Implementations
Generate a new random, base64-encoded SHA-256 PKCE code.
Generate a new random, base64-encoded SHA-256 PKCE challenge code and verifier.
Arguments
num_bytes- Number of random bytes to generate, prior to base64-encoding. The value must be in the range 32 to 96 inclusive in order to generate a verifier with a suitable length.
Panics
This method panics if the resulting PKCE code verifier is not of a suitable length to comply with RFC 7636.
Returns the PKCE code challenge method as a string.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PkceCodeChallengeimpl Send for PkceCodeChallengeimpl Sync for PkceCodeChallengeimpl Unpin for PkceCodeChallengeimpl UnwindSafe for PkceCodeChallengeBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V