authn

package
v0.0.0-...-5d7fa9f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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