auth

package
v0.0.0-...-b110e0a Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCredentials = errors.New("auth: invalid username")

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	Authenticate(username, password string) error
}

type JsonAuthenticator

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

func NewJson

func NewJson(usersPath string) (*JsonAuthenticator, error)

func (*JsonAuthenticator) Authenticate

func (j *JsonAuthenticator) Authenticate(username, password string) error

Jump to

Keyboard shortcuts

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