Versions in this module Expand all Collapse all v1 v1.7.0 Dec 12, 2018 v1.6.0 Oct 4, 2018 Changes in this version + const AuthHeaderKey + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type AuthenticationDB interface + AddUser func(name, passwordHash string, permissions []string) error + GetUser func(name string) (*User, error) + IsLoggedOut func(name string) (bool, error) + SetLoginTime func(name string) + SetLogoutTime func(name string) + func CreateDefaultAuthDB() AuthenticationDB + type AuthenticatorAPI interface + AddPermissionGroup func(group ...*access.PermissionGroup) + Validate func(provider http.HandlerFunc) http.HandlerFunc + func NewAuthenticator(router *mux.Router, ctx *Settings, log logging.Logger) AuthenticatorAPI + type Settings struct + AuthStore AuthenticationDB + Cost int + ExpTime time.Duration + Signature string + Users []access.User + type User struct Incompatible versions in this module v2.2.0+incompatible Aug 23, 2019 v2.1.0+incompatible May 9, 2019 v2.0.0+incompatible Apr 2, 2019