Class OAuth2CryptographicCodeGenerator
Implements
Inherited Members
Namespace: GitCredentialManager.Authentication.OAuth
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public class OAuth2CryptographicCodeGenerator : IOAuth2CodeGenerator
Methods
CreateNonce()
Create a random string value suitable for use as a nonce.
Declaration
public string CreateNonce()
Returns
Type | Description |
---|---|
string | A random string. |
CreatePkceCodeChallenge(OAuth2PkceChallengeMethod, string)
Create a code challenge for the given Proof Key for Code Exchange (PKCE) code verifier.
Declaration
public string CreatePkceCodeChallenge(OAuth2PkceChallengeMethod challengeMethod, string codeVerifier)
Parameters
Type | Name | Description |
---|---|---|
OAuth2PkceChallengeMethod | challengeMethod | Challenge method. |
string | codeVerifier | PKCE code verifier. |
Returns
Type | Description |
---|---|
string | PKCE code challenge. |
CreatePkceCodeVerifier()
Create a cryptographically random code verifier for use with Proof Key for Code Exchange (PKCE).
Declaration
public string CreatePkceCodeVerifier()
Returns
Type | Description |
---|---|
string | PKCE code verifier. |