Versions in this module Expand all Collapse all v2 v2.17.2 Sep 3, 2021 Changes in this version + const MethodJSONAuth + const MethodNoAuth + const MethodProxyAuth + type Auther interface + Auth func(r *http.Request, s users.Store, root string) (*users.User, error) + LoginPage func() bool + type JSONAuth struct + ReCaptcha *ReCaptcha + func (a JSONAuth) Auth(r *http.Request, sto users.Store, root string) (*users.User, error) + func (a JSONAuth) LoginPage() bool + type NoAuth struct + func (a NoAuth) Auth(r *http.Request, sto users.Store, root string) (*users.User, error) + func (a NoAuth) LoginPage() bool + type ProxyAuth struct + Header string + func (a ProxyAuth) Auth(r *http.Request, sto users.Store, root string) (*users.User, error) + func (a ProxyAuth) LoginPage() bool + type ReCaptcha struct + Host string + Key string + Secret string + func (r *ReCaptcha) Ok(response string) (bool, error) + type Storage struct + func NewStorage(back StorageBackend, userStore *users.Storage) *Storage + func (s *Storage) Get(t settings.AuthMethod) (Auther, error) + func (s *Storage) Save(a Auther) error + type StorageBackend interface + Get func(settings.AuthMethod) (Auther, error) + Save func(Auther) error