pkce

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamCodeVerifier        = "code_verifier"
	ParamCodeChallenge       = "code_challenge"
	ParamCodeChallengeMethod = "code_challenge_method"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChallengeMethod

type ChallengeMethod string
const (
	ChallengeMethodPlain ChallengeMethod = "plain"
	ChallengeMethodS256  ChallengeMethod = "S256"
)

type CodeVerifier

type CodeVerifier struct {
	Verifier string
	Method   ChallengeMethod
}

func NewCodeVerifier

func NewCodeVerifier() (*CodeVerifier, error)

func (*CodeVerifier) CodeChallengeOptions

func (c *CodeVerifier) CodeChallengeOptions() []oauth2.AuthCodeOption

func (*CodeVerifier) VerifierOptions

func (c *CodeVerifier) VerifierOptions() []oauth2.AuthCodeOption

Jump to

Keyboard shortcuts

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