Versions in this module Expand all Collapse all v1 v1.1.0 Aug 17, 2017 v1.0.0 May 31, 2017 Changes in this version + const SimpleProviderName + func ProviderList() []string + func RegisterProvider(desc *ProviderDescription, factoryMethod Provider) + type Backend interface + Authenticate func(username, password string) (bool, model.UserInfo, error) + func SimpleBackendFactory(config map[string]string) (Backend, error) + type Config struct + Backends Options + CookieDomain string + CookieExpiry time.Duration + CookieHTTPOnly bool + CookieName string + GracePeriod time.Duration + Host string + JwtExpiry time.Duration + JwtRefreshes int + JwtSecret string + LogLevel string + LoginPath string + LogoutURL string + Oauth Options + Port string + SuccessURL string + Template string + TextLogging bool + func DefaultConfig() *Config + func ReadConfig() *Config + func (c *Config) ConfigureFlagSet(f *flag.FlagSet) + type Handler struct + func NewHandler(config *Config) (*Handler, error) + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options map[string]map[string]string + type Provider func(config map[string]string) (Backend, error) + func GetProvider(providerName string) (Provider, bool) + type ProviderDescription struct + HelpText string + Name string + func GetProviderDescription(providerName string) (*ProviderDescription, bool) + type SimpleBackend struct + func NewSimpleBackend(userPassword map[string]string) *SimpleBackend + func (sb *SimpleBackend) Authenticate(username, password string) (bool, model.UserInfo, error)