tokens

package
v0.0.0-...-df0fe4b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: AGPL-3.0 Imports: 6 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 CreateTokenKubernetes

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

func GetRandomKey

func GetRandomKey() (jwk.Key, bool)

func GetRandomKubernetesKey

func GetRandomKubernetesKey() (jwk.Key, bool)

Kubernetes' OIDC client only supports RS256 signed keys so make sure we only get those

Types

This section is empty.

Jump to

Keyboard shortcuts

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