pub struct ProofKeyCodeExchange {
pub code_verifier: String,
pub code_challenge: String,
pub code_challenge_method: String,
}
Fields§
§code_verifier: String
Used to verify the the The code verifier is not included in the authorization URL. You can set the code verifier here and then use the From trait for [AuthorizationCodeCredential] which does use the code verifier.
code_challenge: String
Used to secure authorization code grants by using Proof Key for Code Exchange (PKCE). Required if code_challenge_method is included. For more information, see the PKCE RFC. This parameter is now recommended for all application types, both public and confidential clients, and required by the Microsoft identity platform for single page apps using the authorization code flow.
code_challenge_method: String
The method used to encode the code_verifier for the code_challenge parameter. This SHOULD be S256, but the spec allows the use of plain if the client can’t support SHA256.
If excluded, code_challenge is assumed to be plaintext if code_challenge is included. The Microsoft identity platform supports both plain and S256. For more information, see the PKCE RFC. This parameter is required for single page apps using the authorization code flow.
Implementations§
Source§impl ProofKeyCodeExchange
impl ProofKeyCodeExchange
pub fn new<T>( code_verifier: T, code_challenge: T, code_challenge_method: T, ) -> Result<ProofKeyCodeExchange, AuthorizationFailure>
Trait Implementations§
Source§impl Clone for ProofKeyCodeExchange
impl Clone for ProofKeyCodeExchange
Source§fn clone(&self) -> ProofKeyCodeExchange
fn clone(&self) -> ProofKeyCodeExchange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more