filters

package
v0.0.0-...-03b3356 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthentication

func WithAuthentication(handler http.Handler, authRequest authenticator.Request) http.Handler

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 WithKubeAPIServer(handler http.Handler, config *rest.Config, failed proxy.ErrorResponder) http.Handler

func WithRequestInfo

func WithRequestInfo(handler http.Handler, resolver request.RequestInfoResolver) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL