Documentation ¶
Index ¶
- type BasicAuth
- func (BasicAuth) AddRecord(uid types.Uid, secret []byte, lifetime time.Duration) (int, auth.AuthErr)
- func (BasicAuth) Authenticate(secret []byte) (types.Uid, int, time.Time, auth.AuthErr)
- func (BasicAuth) GenSecret(uid types.Uid, authLvl int, lifetime time.Duration) ([]byte, time.Time, auth.AuthErr)
- func (BasicAuth) Init(unused string) error
- func (BasicAuth) IsUnique(secret []byte) (bool, auth.AuthErr)
- func (BasicAuth) UpdateRecord(uid types.Uid, secret []byte, lifetime time.Duration) auth.AuthErr
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(uid types.Uid, secret []byte, lifetime time.Duration) (int, auth.AuthErr)
AddRecord adds a basic authentication record to DB.
func (BasicAuth) Authenticate ¶
Authenticate checks login and password.
func (BasicAuth) GenSecret ¶
func (BasicAuth) GenSecret(uid types.Uid, authLvl int, lifetime time.Duration) ([]byte, time.Time, auth.AuthErr)
GenSecret is not supported, generates an error.
Click to show internal directories.
Click to hide internal directories.