func New(cfg *Options) (Basic, error) {
	backend := Basic{Cfg: cfg}
	return backend, nil
}
New instanciates a new Basic authentification backend
package basic
import (
	"errors"
	"golang.org/x/crypto/bcrypt"
)
type Options struct {
	Credentials map[string]string
}
type Basic struct {
	Cfg *Options
}
func (a Basic) Login(username string, password string) (bool, error) {
	hash, ok := a.Cfg.Credentials[username]
	if !ok {
		return false, errors.New("user not found in credentials")
	}
	err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password))
	return err == nil, err
}
func (a Basic) Close() {
}