oauth

package
v0.0.0-...-fbe9a17 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBasicAuthorization

func CreateBasicAuthorization(clientID, clientSecret string) string

CreateBasicAuthorization returns an Authorization header value for basic client authentication.

func CreateProofToken

func CreateProofToken(privateKey *jwt.Key, httpMethod, httpURI string) (string, error)

CreateProofToken creates a DPoP token for use at the given URI for the given HTTP method. These are single-use tokens good for 10 minutes, typically, and must be accompanied by a valid access token. They are not a substitute for an access token.

func GenerateCodeChallenge

func GenerateCodeChallenge() (string, string)

GenerateCodeChallenge produces a new code verifier and SHA-256 challenge.

func GenerateState

func GenerateState() string

GenerateState produces a new random state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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