simpleauth

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionTable

type PermissionTable map[string]UserTable

type SimpleUserAuthenticator

type SimpleUserAuthenticator struct {
	Permissions PermissionTable
}

func (*SimpleUserAuthenticator) AddPermission

func (a *SimpleUserAuthenticator) AddPermission(user string, password string, domain string) (err error)

func (*SimpleUserAuthenticator) Load

func (a *SimpleUserAuthenticator) Load(f io.Reader) (err error)

func (*SimpleUserAuthenticator) RemovePermission

func (a *SimpleUserAuthenticator) RemovePermission(user string, domain string) (err error)

func (*SimpleUserAuthenticator) Save

func (a *SimpleUserAuthenticator) Save(w io.Writer) (err error)

func (*SimpleUserAuthenticator) VerifyPermissions

func (a *SimpleUserAuthenticator) VerifyPermissions(user string, password string, domain string) (err error)

type SimpleUserAuthenticatorLoader

type SimpleUserAuthenticatorLoader struct {
	Path string
}

func (SimpleUserAuthenticatorLoader) Load

func (a SimpleUserAuthenticatorLoader) Load() (uauth auth.Authenticator, err error)

type UserTable

type UserTable map[string]string

Jump to

Keyboard shortcuts

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