package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
TODO: remove the duplicate code InternalIsServiceAccountToken returns true if the secret is a valid api token for the service account.
IsServiceAccountToken returns true if the secret is a valid api token for the service account.
JWTTokenAuthenticator authenticates tokens as JWT tokens produced by JWTTokenGenerator Token signatures are verified using each of the given public keys until one works (allowing key rotation) If lookup is true, the service account and secret referenced as claims inside the token are retrieved and verified with the provided ServiceAccountTokenGetter.
JWTTokenGenerator returns a TokenGenerator that generates signed JWT tokens, using the given privateKey.
No description provided by the author
No description provided by the author
No description provided by the author
UserInfo returns a user.Info interface for the given namespace, service account name and UID.

# Constants

No description provided by the author

# Interfaces

ServiceAccountTokenGetter defines functions to retrieve a named service account and secret.
No description provided by the author
Validator is called by the JWT token authentictaor to apply domain specific validation to a token and extract user information.