Documentation ¶
Index ¶
- func WithAuthentication(handler http.Handler, authRequest authenticator.Request) http.Handler
- func WithAuthorization(handler http.Handler, authorizers authorizer.Authorizer) http.Handler
- func WithKubeAPIServer(handler http.Handler, config *rest.Config, failed proxy.ErrorResponder) http.Handler
- func WithRequestInfo(handler http.Handler, resolver request.RequestInfoResolver) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAuthentication ¶
WithAuthentication installs authentication handler to handler chain. The following part is a little bit ugly, WithAuthentication also logs user failed login attempt if using basic auth. But only treats request with requestURI `/oauth/authorize` as login attempt
func WithAuthorization ¶
func WithAuthorization(handler http.Handler, authorizers authorizer.Authorizer) http.Handler
WithAuthorization passes all authorized requests on to handler, and returns forbidden error otherwise.
func WithKubeAPIServer ¶
func WithRequestInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.