Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const BasicMethodName + const ReverseProxyMethodName + func APIAuth(authMethod Method) func(*context.APIContext) + func Auth(authMethod Method) func(*context.Context) + func CheckOAuthAccessToken(accessToken string) int64 + func DeleteSource(source *auth.Source) error + func Init() + func SessionUser(sess SessionStore) *user_model.User + func SyncExternalUsers(ctx context.Context, updateExisting bool) error + func UserSignIn(username, password string) (*user_model.User, *auth.Source, error) + func VerifyAuthWithOptions(options *VerifyOptions) func(ctx *context.Context) + func VerifyAuthWithOptionsAPI(options *VerifyOptions) func(ctx *context.APIContext) + func VerifyCert(r *http.Request) (*asymkey_model.PublicKey, error) + func VerifyPubKey(r *http.Request) (*asymkey_model.PublicKey, error) + type Basic struct + func (b *Basic) Name() string + func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type DataStore middleware.ContextDataStore + type Freeable interface + Free func() error + type Group struct + func NewGroup(methods ...Method) *Group + func (b *Group) Add(method Method) + func (b *Group) Free() error + func (b *Group) Init(ctx context.Context) error + func (b *Group) Name() string + func (b *Group) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type HTTPSign struct + func (h *HTTPSign) Name() string + func (h *HTTPSign) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type Initializable interface + Init func(ctx context.Context) error + type LocalTwoFASkipper interface + IsSkipLocalTwoFA func() bool + type Method interface + Verify func(http *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type Named interface + Name func() string + type OAuth2 struct + func (o *OAuth2) Name() string + func (o *OAuth2) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type PasswordAuthenticator interface + Authenticate func(user *user_model.User, login, password string) (*user_model.User, error) + type ReverseProxy struct + func (r *ReverseProxy) Name() string + func (r *ReverseProxy) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type SSPI struct — windows/amd64 + func (s *SSPI) Free() error + func (s *SSPI) Init(ctx context.Context) error + func (s *SSPI) Name() string + func (s *SSPI) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type Session struct + func (s *Session) Name() string + func (s *Session) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) (*user_model.User, error) + type SessionStore session.Store + type SynchronizableSource interface + Sync func(ctx context.Context, updateExisting bool) error + type VerifyOptions struct + AdminRequired bool + DisableCSRF bool + SignInRequired bool + SignOutRequired bool