Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(address string, cfg *gatewayconfig.FrontProxyComponent, oidcAuthenticator *oidc.Authenticator, protected bool) (http.Handler, error)
NewHandler to create a reverse proxy handler and returns it. This mode of reverse proxy will resolve the token in the request cookie, call oidc to get the user identity, and pass it to the backend service as HTTP header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.