BasicAuthRedis

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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const NIterations = 5000

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthRedis

type BasicAuthRedis struct {
	Next             http.Handler //
	Paths            []string     //
	Realm            string       //
	RedisPrefix      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
}

func NewBasicAuthServer

func NewBasicAuthServer(n http.Handler, p []string, redis_prefix, realm string) *BasicAuthRedis

func (*BasicAuthRedis) InitializeWithConfigData

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

func (*BasicAuthRedis) PreValidate

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

func (*BasicAuthRedis) ServeHTTP

func (hdlr *BasicAuthRedis) 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