Versions in this module Expand all Collapse all v2 v2.0.0 Dec 16, 2020 Changes in this version + type AuthenticationProvider interface + AuthenticateMiddleware func(next http.Handler) http.Handler + GetToken func(w http.ResponseWriter, r *http.Request) + GetUserInfoIfCredentialsAreCorrect func(username string, password string) (map[string]interface{}, utils.AdvancedErrorInterface) + Init func() + func BuildAuthenticationProvider(conf config.AuthenticationProviderConfig, timeNow func() time.Time, ...) AuthenticationProvider + type BasicAuthenticationProvider struct + Config config.AuthenticationProviderConfig + Log *logrus.Logger + TimeNow func() time.Time + func (ap *BasicAuthenticationProvider) AuthenticateMiddleware(next http.Handler) http.Handler + func (ap *BasicAuthenticationProvider) GetToken(w http.ResponseWriter, r *http.Request) + func (ap *BasicAuthenticationProvider) GetUserInfoIfCredentialsAreCorrect(username string, password string) (map[string]interface{}, utils.AdvancedErrorInterface) + func (ap *BasicAuthenticationProvider) Init() + type LDAPAuthenticationProvider struct + Client *ldap.LDAPClient + Config config.AuthenticationProviderConfig + Log *logrus.Logger + TimeNow func() time.Time + func (ap *LDAPAuthenticationProvider) AuthenticateMiddleware(next http.Handler) http.Handler + func (ap *LDAPAuthenticationProvider) GetToken(w http.ResponseWriter, r *http.Request) + func (ap *LDAPAuthenticationProvider) GetUserInfoIfCredentialsAreCorrect(username string, password string) (map[string]interface{}, utils.AdvancedErrorInterface) + func (ap *LDAPAuthenticationProvider) Init()