Table of Contents

Class Pkce

Namespace
BpNexT.NET.GraphQL.Client.OAuth
Assembly
BpNexT.NET.GraphQL.dll

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
object
Pkce

Methods

ComputeChallenge(string)

Computes the S256 code challenge for a verifier: base64url(SHA256(verifier)), without padding.

public static string ComputeChallenge(string verifier)

Parameters

verifier string

The code verifier.

Returns

string

CreatePair()

Creates a new random 128-character code verifier and its S256 challenge.

public static PkcePair CreatePair()

Returns

PkcePair