Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParameterCodeChallenge string = "code_challenge" ParameterCodeChallengeMethod string = "code_challenge_method" ParameterCodeVerifier string = "code_verifier" )
Variables ¶
This section is empty.
Functions ¶
func CalculatePKCE ¶
func CalculatePKCE(method CodeChallengeMethod, value string) string
func ValidatePKCE ¶
func ValidatePKCE(method CodeChallengeMethod, verifier string, value string) bool
Types ¶
type CodeChallengeMethod ¶
type CodeChallengeMethod string
CodeChallengeMethod as described in https://datatracker.ietf.org/doc/html/rfc7636#section-4.3
const ( S256 CodeChallengeMethod = "S256" PLAIN CodeChallengeMethod = "plain" )
func CodeChallengeMethodFromString ¶
func CodeChallengeMethodFromString(value string) (CodeChallengeMethod, bool)
Click to show internal directories.
Click to hide internal directories.