basic

package
v0.0.0-...-261f1bd Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct{}

BasicAuth is the type to map authentication methods to.

func (BasicAuth) AddRecord

func (BasicAuth) AddRecord(rec *auth.Rec, secret []byte) (auth.Level, error)

AddRecord adds a basic authentication record to DB.

func (BasicAuth) Authenticate

func (BasicAuth) Authenticate(secret []byte) (*auth.Rec, error)

Authenticate checks login and password.

func (BasicAuth) DelRecords

func (BasicAuth) DelRecords(uid types.Uid) error

func (BasicAuth) GenSecret

func (BasicAuth) GenSecret(rec *auth.Rec) ([]byte, time.Time, error)

GenSecret is not supported, generates an error.

func (BasicAuth) Init

func (BasicAuth) Init(unused string) error

Init initializes the basic authenticator.

func (BasicAuth) IsUnique

func (BasicAuth) IsUnique(secret []byte) (bool, error)

IsUnique checks login uniqueness.

func (BasicAuth) UpdateRecord

func (BasicAuth) UpdateRecord(rec *auth.Rec, secret []byte) error

UpdateRecord updates password for basic authentication.

Jump to

Keyboard shortcuts

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