auth

package
v1.0.0-...-947c36d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 BasicUnauthorized(req *http.Request, realm string) *http.Response

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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