Documentation
¶
Index ¶
- Constants
- Variables
- func CreateSecretSpec(secretName string, data Data) (*corev1.Secret, error)
- func ExtractCurrentJWK(secretName string, secrets kubernetes.SecretLists) (jose.JSONWebKey, error)
- func ExtractJWK(sec corev1.Secret) (jose.JSONWebKey, error)
- func ExtractPreviousInUseJWKSet(secrets kubernetes.SecretLists) (jose.JSONWebKeySet, error)
- func Labels(appName string) map[string]string
- type Data
Constants ¶
View Source
const ( TokenXClientIDKey = "TOKEN_X_CLIENT_ID" TokenXIssuerKey = "TOKEN_X_ISSUER" TokenXJwksURIKey = "TOKEN_X_JWKS_URI" TokenXPrivateJWKKey = "TOKEN_X_PRIVATE_JWK" TokenXTokenEndpointKey = "TOKEN_X_TOKEN_ENDPOINT" TokenXWellKnownURLKey = "TOKEN_X_WELL_KNOWN_URL" TokenXSecretLabelKey = "type" TokenXSecretLabelType = "jwker.nais.io" StakaterReloaderAnnotationKey = "reloader.stakater.com/match" )
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
func ExtractCurrentJWK ¶
func ExtractCurrentJWK(secretName string, secrets kubernetes.SecretLists) (jose.JSONWebKey, error)
func ExtractJWK ¶
func ExtractJWK(sec corev1.Secret) (jose.JSONWebKey, error)
func ExtractPreviousInUseJWKSet ¶
func ExtractPreviousInUseJWKSet(secrets kubernetes.SecretLists) (jose.JSONWebKeySet, error)
Types ¶
type Data ¶
type Data struct {
ClientID tokendings.ClientID
Jwk jose.JSONWebKey
Tokendings tokendings.Instance
}
Click to show internal directories.
Click to hide internal directories.