basic

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: GPL-3.0 Imports: 6 Imported by: 11

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 added in v0.14.4

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