goproxy: github.com/elazarl/goproxy/ext/auth Index | Files

package auth

import "github.com/elazarl/goproxy/ext/auth"

Index

Package Files

basic.go

func Basic Uses

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 Uses

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 Uses

func BasicUnauthorized(req *http.Request, realm string) *http.Response

func ProxyBasic Uses

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

Package auth imports 6 packages (graph) and is imported by 8 packages. Updated 2018-06-12. Refresh now. Tools for package owners.