pkce

package
v0.7.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL