Documentation ¶
Index ¶
- Variables
- func BuildKeyset(jwks string) error
- func CreateToken(issuer, audience, subject string, ttl int, claims map[string]interface{}) ([]byte, error)
- func CreateTokenKubernetes(issuer, audience, subject string, ttl int, claims map[string]interface{}) ([]byte, error)
- func GetRandomKey() (jwk.Key, bool)
- func GetRandomKubernetesKey() (jwk.Key, bool)
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 CreateToken ¶
func CreateTokenKubernetes ¶
func GetRandomKey ¶
func GetRandomKubernetesKey ¶
Kubernetes' OIDC client only supports RS256 signed keys so make sure we only get those
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.