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