pkce

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code string

Code implements the basic options required for RFC 7636: Proof Key for Code Exchange (PKCE).

func Generate

func Generate() (Code, error)

Generate generates a new random PKCE code.

func (*Code) Challenge

func (p *Code) Challenge() oauth2.AuthCodeOption

Challenge returns the OAuth2 auth code parameter for sending the PKCE code challenge.

func (*Code) Method

func (p *Code) Method() oauth2.AuthCodeOption

Method returns the OAuth2 auth code parameter for sending the PKCE code challenge method.

func (*Code) Verifier

func (p *Code) Verifier() oauth2.AuthCodeOption

Verifier returns the OAuth2 auth code parameter for sending the PKCE code verifier.

Jump to

Keyboard shortcuts

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