auth

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const AUTH_REQUIRED_MSG = "Proxy authentication required.\n"
View Source
const AUTH_TRIGGERED_MSG = "Browser auth triggered!\n"
View Source
const BAD_REQ_MSG = "Bad Request\n"
View Source
const EPOCH_EXPIRE = "Thu, 01 Jan 1970 00:00:01 GMT"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Validate(wr http.ResponseWriter, req *http.Request) (string, bool)
	Stop()
}

func NewAuth

func NewAuth(paramstr string, logger *clog.CondLogger) (Auth, error)

type BasicAuth

type BasicAuth struct {
	// contains filtered or unexported fields
}

func NewBasicFileAuth

func NewBasicFileAuth(param_url *url.URL, logger *clog.CondLogger) (*BasicAuth, error)

func NewStaticAuth

func NewStaticAuth(param_url *url.URL, logger *clog.CondLogger) (*BasicAuth, error)

func (*BasicAuth) Stop

func (auth *BasicAuth) Stop()

func (*BasicAuth) Validate

func (auth *BasicAuth) Validate(wr http.ResponseWriter, req *http.Request) (string, bool)

type CertAuth

type CertAuth struct {
	// contains filtered or unexported fields
}

func NewCertAuth

func NewCertAuth(param_url *url.URL, logger *clog.CondLogger) (*CertAuth, error)

func (*CertAuth) Stop

func (auth *CertAuth) Stop()

func (*CertAuth) Validate

func (auth *CertAuth) Validate(wr http.ResponseWriter, req *http.Request) (string, bool)

type NoAuth

type NoAuth struct{}

func (NoAuth) Stop

func (_ NoAuth) Stop()

func (NoAuth) Validate

func (_ NoAuth) Validate(wr http.ResponseWriter, req *http.Request) (string, bool)

Jump to

Keyboard shortcuts

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