package handlers
import "k8s.io/kubernetes/pkg/auth/handlers"
Index ¶
- func Unauthorized(supportsBasicAuth bool) http.HandlerFunc
- func WithAuthentication(handler http.Handler, mapper api.RequestContextMapper, auth authenticator.Request, failed http.Handler) http.Handler
Functions ¶
func Unauthorized ¶
func Unauthorized(supportsBasicAuth bool) http.HandlerFunc
func WithAuthentication ¶
func WithAuthentication(handler http.Handler, mapper api.RequestContextMapper, auth authenticator.Request, failed http.Handler) http.Handler
WithAuthentication 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, "Authorization" header is removed from the request and handler is invoked to serve the request.
Source Files ¶
handlers.go
- Version
- v1.5.3
- Published
- Feb 15, 2017
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 4 minutes ago –
Tools for package owners.