htpasswd

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "htpasswd"

ProviderName const

Variables

This section is empty.

Functions

func BackendFactory

func BackendFactory(config map[string]string) (login.Backend, error)

BackendFactory creates a htpasswd backend

Types

type Auth

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

Auth is the htpassword authenticater

func NewAuth

func NewAuth(filenames []string) (*Auth, error)

NewAuth creates an htpassword authenticater

func (*Auth) Authenticate

func (a *Auth) Authenticate(username, password string) (bool, error)

Authenticate the user

type Backend

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

Backend is a htpasswd based authentication backend.

func NewBackend

func NewBackend(filenames []string) (*Backend, error)

NewBackend creates a new Backend and verifies the parameters.

func (*Backend) Authenticate

func (sb *Backend) Authenticate(username, password string) (bool, model.UserInfo, error)

Authenticate the user

type File added in v1.1.0

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

File is a struct to serve an individual modTime

Jump to

Keyboard shortcuts

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