pkce

package
v0.0.0-...-049ef2a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeChallengeMethodPlain = "plain"
	CodeChallengeMethodS256  = "S256"
)

Variables

This section is empty.

Functions

func EncodeBase64WithoutPadding

func EncodeBase64WithoutPadding(origin []byte) string

func GenRandomCodeVerifier

func GenRandomCodeVerifier() string

func S256Encode

func S256Encode(origin string) string

Types

type Verifier

type Verifier interface {
	Verify(challenge, verifier string) bool
}

func FindVerifierByMethod

func FindVerifierByMethod(method string) (Verifier, error)

Jump to

Keyboard shortcuts

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