local

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewAuthProvider

func NewAuthProvider(file string, loginExpiry, sessionExpiry string) (*Local, error)

func (*Local) Authenticate

func (p *Local) Authenticate(uid, pwd string) (string, error)

func (*Local) Authenticated

func (p *Local) Authenticated(cookie string) (string, string, string, error)

func (*Local) Invalidate

func (p *Local) Invalidate(tokenType auth.TokenType, cookie string) error

func (*Local) Preauthenticate

func (p *Local) Preauthenticate() (string, error)

func (*Local) Validate

func (p *Local) Validate(uid, pwd string) error

func (*Local) Verify

func (p *Local) Verify(tokenType auth.TokenType, cookie string) error

Jump to

Keyboard shortcuts

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