pkce

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransformationPlain = PKCEMethod("plain")
	TransformationS256  = PKCEMethod("S256")
)

Defines for the possible PKCEMethod

Variables

This section is empty.

Functions

This section is empty.

Types

type PKCE

type PKCE struct {
	// contains filtered or unexported fields
}

PKCE is a type holding the information for a PKCE flow

func NewPKCE

func NewPKCE(verifier string, method PKCEMethod) *PKCE

NewPKCE creates a new PKCE for the passed verifier and PKCEMethod

func NewS256PKCE

func NewS256PKCE(verifier string) *PKCE

NewS256PKCE creates a new PKCE for the passed verifier and the PKCEMethod TransformationS256

func (*PKCE) Challenge

func (pkce *PKCE) Challenge() (string, error)

Challenge returns the code_challenge according to the defined PKCEMethod

func (PKCE) Verifier

func (pkce PKCE) Verifier() string

Verifier returns the code_verifier

type PKCEMethod

type PKCEMethod string

PKCEMethod is a type for the code challenge methods

func (PKCEMethod) String

func (m PKCEMethod) String() string

Jump to

Keyboard shortcuts

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