kubernetesk8s.io/kubernetes/pkg/auth/authenticator Index | Files | Directories

package authenticator

import "k8s.io/kubernetes/pkg/auth/authenticator"

Index

Types

type Request

type Request interface {
	AuthenticateRequest(req *http.Request) (user.Info, bool, error)
}

Request attempts to extract authentication information from a request and returns information about the current user and true if successful, false if not successful, or an error if the token could not be checked.

type RequestFunc

type RequestFunc func(req *http.Request) (user.Info, bool, error)

RequestFunc is a function that implements the Request interface.

func (RequestFunc) AuthenticateRequest

func (f RequestFunc) AuthenticateRequest(req *http.Request) (user.Info, bool, error)

AuthenticateRequest implements authenticator.Request.

type Token

type Token interface {
	AuthenticateToken(token string) (user.Info, bool, error)
}

Token checks a string value against a backing authentication store and returns information about the current user and true if successful, false if not successful, or an error if the token could not be checked.

type TokenFunc

type TokenFunc func(token string) (user.Info, bool, error)

TokenFunc is a function that implements the Token interface.

func (TokenFunc) AuthenticateToken

func (f TokenFunc) AuthenticateToken(token string) (user.Info, bool, error)

AuthenticateToken implements authenticator.Token.

Source Files

interfaces.go

Directories

PathSynopsis
pkg/auth/authenticator/bearertoken
pkg/auth/authenticator/tokenfile
Version
v0.4.3
Published
Oct 30, 2014
Platform
js/wasm
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.