pkce

package
Version: v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL