tokens

package
v0.0.0-...-09b1ea4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoKeys = fmt.Errorf("no keys available")
)
View Source
var JWKS string
View Source
var KeySet jwk.Set

Functions

func BuildKeyset

func BuildKeyset(jwks string) error

func CreateToken

func CreateToken(issuer, audience, subject string, ttl int, claims map[string]interface{}) ([]byte, error)

func GetRandomKey

func GetRandomKey() (jwk.Key, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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