anon

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonAuth

type AnonAuth struct{}

AnonAuth is the singleton instance of the anonymous authorizer.

func (AnonAuth) AddRecord

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

AddRecord is a noop. Just report success.

func (AnonAuth) Authenticate

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

Authenticate is not supported. It's used only at account creation time.

func (AnonAuth) DelRecords

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

DelRecords is a noop which always succeeds.

func (AnonAuth) GenSecret

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

GenSecret always fails.

func (AnonAuth) Init

func (AnonAuth) Init(unused string) error

Init is a noop, always returns success.

func (AnonAuth) IsUnique

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

IsUnique for a noop. Anonymous login does not use secret, any secret is fine.

func (AnonAuth) UpdateRecord

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

UpdateRecord is a noop. Just report success.

Jump to

Keyboard shortcuts

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