simpleauth

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NoAuth = auth.Type("noauth")

Variables

This section is empty.

Functions

func Load

func Load(unmarshal auth.YAMLUnmarshaler, config_dir string) (auth.Authenticator, error)

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func FromConfig

func FromConfig(config Config) (*Authenticator, error)

func (*Authenticator) Close

func (a *Authenticator) Close() (err error)

func (*Authenticator) Load

func (a *Authenticator) Load(config Config)

func (*Authenticator) VerifyPermissions

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

type Config

type Config struct {
	Domains []string
}

Jump to

Keyboard shortcuts

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