package handlers
import "k8s.io/kubernetes/pkg/auth/handlers"
Index ¶
- Variables
- func NewRequestAuthenticator(mapper api.RequestContextMapper, auth authenticator.Request, failed http.Handler, handler http.Handler) (http.Handler, error)
Variables ¶
var http.HandlerFunc = unauthorized
Functions ¶
func NewRequestAuthenticator ¶
func NewRequestAuthenticator(mapper api.RequestContextMapper, auth authenticator.Request, failed http.Handler, handler http.Handler) (http.Handler, error)
NewRequestAuthenticator creates an http handler that tries to authenticate the given request as a user, and then stores any such user found onto the provided context for the request. If authentication fails or returns an error the failed handler is used. On success, handler is invoked to serve the request.
Source Files ¶
handlers.go
- Version
- v0.13.1-dev
- Published
- Mar 16, 2015
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 14 seconds ago –
Tools for package owners.