Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenAuthenticator ¶
type TokenAuthenticator struct {
// contains filtered or unexported fields
}
TokenAuthenticator authenticates the user using K8s TokenReview API
func NewTokenAuthenticator ¶
func NewTokenAuthenticator(kubeClient kubernetes.Interface) *TokenAuthenticator
func (*TokenAuthenticator) Authenticate ¶
func (t *TokenAuthenticator) Authenticate(ctx context.Context, token string, audience string) (bool, *authv1.UserInfo, error)
Authenticate the user with security token and find the user identity. TokenReview API is used to validated the token with given audience.
Click to show internal directories.
Click to hide internal directories.