Versions in this module Expand all Collapse all v1 v1.0.4 Sep 29, 2024 Changes in this version + type Account struct + Password string + Username string + type Authentication struct + Providers map[string]Authenticator + ProvidersRaw kengine.ModuleMap + func (Authentication) KengineModule() kengine.ModuleInfo + func (a *Authentication) Provision(ctx kengine.Context) error + func (a Authentication) ServeHTTP(w http.ResponseWriter, r *http.Request, next kenginehttp.Handler) error + type Authenticator interface + Authenticate func(http.ResponseWriter, *http.Request) (User, bool, error) + type BcryptHash struct + func (BcryptHash) Compare(hashed, plaintext []byte) (bool, error) + func (BcryptHash) FakeHash() []byte + func (BcryptHash) Hash(plaintext []byte) ([]byte, error) + func (BcryptHash) KengineModule() kengine.ModuleInfo + type Cache struct + type Comparer interface + Compare func(hashedPassword, plaintextPassword []byte) (bool, error) + type HTTPBasicAuth struct + AccountList []Account + Accounts map[string]Account + Hash Comparer + HashCache *Cache + HashRaw json.RawMessage + Realm string + func (HTTPBasicAuth) KengineModule() kengine.ModuleInfo + func (hba *HTTPBasicAuth) Provision(ctx kengine.Context) error + func (hba HTTPBasicAuth) Authenticate(w http.ResponseWriter, req *http.Request) (User, bool, error) + type Hasher interface + FakeHash func() []byte + Hash func(plaintext []byte) ([]byte, error) + type User struct + ID string + Metadata map[string]string Other modules containing this package github.com/khulnasoft/kengine/v2