auth

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized = fmt.Errorf("unauthorized")
	ErrAuthRequired = fmt.Errorf("authentication required")
)

Functions

func NewUser

func NewUser(id string) *user

Types

type Auth

type Auth interface {
	LookupUser(req *http.Request) (model.User, error)
	Start(*util.AsyncErr) error
	Stop()
}

func NewAuth

func NewAuth(logger lager.Logger, param Parameters) Auth

type Parameters

type Parameters struct {
	Enabled  bool   `yaml:"enabled"`
	Filename string `yaml:"filename"`
}

func (*Parameters) Validate

func (p *Parameters) Validate() error

Jump to

Keyboard shortcuts

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