auth0

package
v0.20.15 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

auth0 contains a Go implementation of Auth0's PKCE support: https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePKCEChallengeS256

func CreatePKCEChallengeS256(verifier string) string

func CreatePKCECodeVerifier

func CreatePKCECodeVerifier() (string, error)

Types

type PKCEAuthorizationURLInfo added in v0.13.0

type PKCEAuthorizationURLInfo struct {
	Host                string `url:"-"`
	Audience            string `url:"audience"`
	Scope               string `url:"scope"`
	ResponseType        string `url:"response_type"`
	ClientID            string `url:"client_id"`
	CodeChallenge       string `url:"code_challenge"`
	CodeChallengeMethod string `url:"code_challenge_method"`
	RedirectURI         string `url:"redirect_uri"`
}

func (*PKCEAuthorizationURLInfo) Data added in v0.13.0

type PKCETokenURLInfo added in v0.13.0

type PKCETokenURLInfo struct {
	Host         string `json:"-"`
	GrantType    string `json:"grant_type"`
	ClientID     string `json:"client_id"`
	CodeVerifier string `json:"code_verifier"`
	Code         string `json:"code"`
	RedirectURI  string `json:"redirect_uri"`
}

func (*PKCETokenURLInfo) Body added in v0.13.0

func (tu *PKCETokenURLInfo) Body() ([]byte, error)

func (*PKCETokenURLInfo) Exchange added in v0.13.0

func (tu *PKCETokenURLInfo) Exchange() (*http.Response, error)

func (*PKCETokenURLInfo) URL added in v0.13.0

func (tu *PKCETokenURLInfo) URL() string

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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