authentication

package
v1.18.9 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValidatorConfig

type KeyValidatorConfig interface {
	Issuer() string
	ClientID() string
	// RequiredConfigMaps returns config maps that the KeyValidatorConfig implementation requires.
	RequiredConfigMaps(namespace string) []*corev1.ConfigMap
	// RequiredEnv returns env variables that the KeyValidatorConfig implementation requires.
	RequiredEnv(prefix string) []corev1.EnvVar
	// RequiredAnnotations returns annotations that the KeyValidatorConfig implementation requires.
	RequiredAnnotations() map[string]string
	// RequiredSecrets returns secrets that the KeyValidatorConfig implementation requires.
	RequiredSecrets(namespace string) []*corev1.Secret
	// RequiredVolumeMounts returns volume mounts that the KeyValidatorConfig implementation requires.
	RequiredVolumeMounts() []corev1.VolumeMount
	// RequiredVolumes returns volumes that the KeyValidatorConfig implementation requires.
	RequiredVolumes() []corev1.Volume
}

type WellKnownConfig

type WellKnownConfig struct {
	Issuer      string   `json:"issuer"`
	AuthURL     string   `json:"authorization_endpoint"`
	TokenURL    string   `json:"token_endpoint"`
	JWKSURL     string   `json:"jwks_uri"`
	UserInfoURL string   `json:"userinfo_endpoint"`
	Algorithms  []string `json:"id_token_signing_alg_values_supported"`
}

func NewWellKnownConfig

func NewWellKnownConfig(issuerURL string) (*WellKnownConfig, error)

func (*WellKnownConfig) GetJWKS

func (wk *WellKnownConfig) GetJWKS() ([]byte, error)

func (*WellKnownConfig) ToString

func (wk *WellKnownConfig) ToString() string

Directories

Path Synopsis
tigera

Jump to

Keyboard shortcuts

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