BasicAuthPgSQL

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const NIterations = 5000

NIterations is the number of iterations that pbkdf2 hasing will use

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicPgSQLHandlerType

type BasicPgSQLHandlerType struct {
	Next             http.Handler //
	Paths            []string     //
	Realm            string       //
	HashUsername     bool         // If true then the email address is hashed before retreval
	HashUsernameSalt string       // Optional - must be application wide salt - not the same as per-user salt that is generated.
	LineNo           int          //
	// contains filtered or unexported fields
}

BasicPgSQLHandlerType configuration for this middleare

func NewBasicAuthPgSQLServer

func NewBasicAuthPgSQLServer(n http.Handler, p []string, realm string) *BasicPgSQLHandlerType

NewBasicAuthPgSQLServer return a default initialized BasicPgSQLHandlerType -- look in the test code to see if additional initialization was performed.

func (*BasicPgSQLHandlerType) InitializeWithConfigData

func (hdlr *BasicPgSQLHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*BasicPgSQLHandlerType) PreValidate

func (hdlr *BasicPgSQLHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (*BasicPgSQLHandlerType) ServeHTTP

func (hdlr *BasicPgSQLHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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