pkce

package
v0.0.0-...-9f6843c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeChallengeMethodSHA1   = "S1"
	CodeChallengeMethodSHA256 = "S256"
	CodeChallengeMethodSHA512 = "S512"
	CodeChallengeMethodMD5    = "MD5"
)

Variables

This section is empty.

Functions

func Base64URLEncode

func Base64URLEncode(str []byte) string

Types

type Option

type Option func(o *options)

func WithCodeChallengeMethod

func WithCodeChallengeMethod(method string) Option

type Suite

type Suite struct {
	CodeVerifier        string
	CodeChallenge       string
	CodeChallengeMethod string
}

func Generate

func Generate(opts ...Option) (*Suite, error)

Jump to

Keyboard shortcuts

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