basic

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderAuth = "Authorization"
View Source
const Name = "basic-auth"

Variables

View Source
var (
	ErrInvalidBase64 = errors.New("invalid base64")
	ErrNoHeader      = errors.New("not authorized")
	ErrInvalidAuth   = errors.New("invalid authentication")
)

errors

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	Realm        string
	Authenticate func(user, pwd string) error
	Authorize    func(user string, req middleware.Request) error
}

Jump to

Keyboard shortcuts

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