Class Pkce
Helpers for the Proof Key for Code Exchange extension (RFC 7636) used by the OAuth 2.0 authorization code flow. PKCE is mandatory for both public and confidential microtech ERP GraphQL clients.
public static class Pkce
- Inheritance
-
objectPkce
Methods
ComputeChallenge(string)
Computes the S256 code challenge for a verifier: base64url(SHA256(verifier)), without padding.
public static string ComputeChallenge(string verifier)
Parameters
verifierstringThe code verifier.
Returns
CreatePair()
Creates a new random 128-character code verifier and its S256 challenge.
public static PkcePair CreatePair()