package webhook

import "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/webhook"

Package webhook implements the authenticator.Token interface using HTTP webhooks.

Index

Types

type WebhookTokenAuthenticator

type WebhookTokenAuthenticator struct {
	*webhook.GenericWebhook
	// contains filtered or unexported fields
}

func New

func New(kubeConfigFile string, ttl time.Duration) (*WebhookTokenAuthenticator, error)

New creates a new WebhookTokenAuthenticator from the provided kubeconfig file.

func (*WebhookTokenAuthenticator) AuthenticateToken

func (w *WebhookTokenAuthenticator) AuthenticateToken(token string) (user.Info, bool, error)

AuthenticateToken implements the authenticator.Token interface.

Source Files

webhook.go

Version
v1.4.9
Published
Feb 15, 2017
Platform
js/wasm
Imports
10 packages
Last checked
13 seconds ago

Tools for package owners.