Documentation ¶
Index ¶
- Variables
- func MustAuth(handler func(w http.ResponseWriter, r *http.Request)) http.Handler
- func NewProxy(targetHost string) *httputil.ReverseProxy
- func ProxyRequestHandler(proxy *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
- func Router()
- func SetAuthSource(source string) authSource
- func SetInsecureSkipVerifyPolicy()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LdapServer string LdapPort = 389 LdapSecurityLevel = 4 LdapBaseDN string LdapGroup string AUTH_MODE string LISTEN_ADDR string = "0.0.0.0:8080" USERNAME_HEADER string = "X-username" SET_USERNAME_HEADER bool InsecureSkipVerify bool UPSTREAM_Bearer_TOKEN string EnableK8sDashbaord bool K8sSaNameSpace string = os.Getenv("K8S_SERVICE_ACCOUNT_NAME_SPACE") )
View Source
var SSO authSource
View Source
var (
UpStream string
)
Functions ¶
func NewProxy ¶
func NewProxy(targetHost string) *httputil.ReverseProxy
func ProxyRequestHandler ¶
func ProxyRequestHandler(proxy *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
ProxyRequestHandler handles the http request using proxy
func SetAuthSource ¶
func SetAuthSource(source string) authSource
func SetInsecureSkipVerifyPolicy ¶
func SetInsecureSkipVerifyPolicy()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.