basic

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BasicAuthConfigKey The name of the basic auth config section
	BasicAuthConfigKey = "basic"
	// PasswordFile The path to a file with the list of allowed users in htpasswd format with passwords hashed with bcrypt
	PasswordFile = "passwordfile"
)

Variables

This section is empty.

Functions

func Name

func Name() string

Types

type Auth

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

func (*Auth) Authorize

func (a *Auth) Authorize(ctx context.Context, req *fftypes.AuthReq) error

func (*Auth) Init

func (a *Auth) Init(ctx context.Context, name string, config config.Section) error

func (*Auth) InitConfig

func (a *Auth) InitConfig(config config.Section)

func (*Auth) Name

func (a *Auth) Name() string

Jump to

Keyboard shortcuts

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