package auth
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/elazarl/goproxy/ext/auth"
Index ¶
- func Basic(realm string, f func(user, passwd string) bool) goproxy.ReqHandler
- func BasicConnect(realm string, f func(user, passwd string) bool) goproxy.HttpsHandler
- func BasicUnauthorized(req *http.Request, realm string) *http.Response
- func ProxyBasic(proxy *goproxy.ProxyHttpServer, realm string, f func(user, passwd string) bool)
Functions ¶
func Basic ¶
func Basic(realm string, f func(user, passwd string) bool) goproxy.ReqHandler
Basic returns a basic HTTP authentication handler for requests
You probably want to use auth.ProxyBasic(proxy) to enable authentication for all proxy activities
func BasicConnect ¶
func BasicConnect(realm string, f func(user, passwd string) bool) goproxy.HttpsHandler
BasicConnect returns a basic HTTP authentication handler for CONNECT requests
You probably want to use auth.ProxyBasic(proxy) to enable authentication for all proxy activities
func BasicUnauthorized ¶
func ProxyBasic ¶
func ProxyBasic(proxy *goproxy.ProxyHttpServer, realm string, f func(user, passwd string) bool)
ProxyBasic will force HTTP authentication before any request to the proxy is processed
Source Files ¶
basic.go
- Version
- v1.1.9-beta.0
- Published
- Feb 23, 2016
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 35 minutes ago –
Tools for package owners.