Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + func AddProvider(check func(*types.AuthCheckingContext) *types.AuthenticatedUser) + func AuthFromHttpReq(req *http.Request, cfg *types.Config) *types.AuthenticatedUser + func UserFromSystem(cfg *authpublic.Config, username string) *authpublic.AuthenticatedUser + func UserGuest(cfg *authpublic.Config) *authpublic.AuthenticatedUser + type AuthShimContext struct + Config *authpublic.Config + Sessions *sessions.SessionStorage + func NewAuthShimContext(cfg *authpublic.Config, sessionStorage *sessions.SessionStorage) (*AuthShimContext, error) + func (ctx *AuthShimContext) AddProvider(check func(*authpublic.AuthCheckingContext) *authpublic.AuthenticatedUser) + func (ctx *AuthShimContext) AuthFromHeaders(headers http.Header) *authpublic.AuthenticatedUser + func (ctx *AuthShimContext) AuthFromHeadersWithError(headers http.Header) (*authpublic.AuthenticatedUser, error) + func (ctx *AuthShimContext) AuthFromHttpReq(req *http.Request) *authpublic.AuthenticatedUser + func (ctx *AuthShimContext) AuthFromHttpReqWithError(req *http.Request) (*authpublic.AuthenticatedUser, error) + func (ctx *AuthShimContext) ClearProviders() + func (ctx *AuthShimContext) DeleteUserSession(provider string, sid string) + func (ctx *AuthShimContext) GetProviders() []func(*authpublic.AuthCheckingContext) *authpublic.AuthenticatedUser + func (ctx *AuthShimContext) GetUserSession(provider string, sid string) *sessions.UserSession + func (ctx *AuthShimContext) InsertProvider(index int, ...) + func (ctx *AuthShimContext) OnAuthenticated(fn EnrichUserFunc) + func (ctx *AuthShimContext) RegisterUserSession(provider string, sid string, username string, usergroup ...string) + func (ctx *AuthShimContext) RemoveProviderByIndex(index int) error + func (ctx *AuthShimContext) Shutdown() error + func (ctx *AuthShimContext) UserFromSystem(username string) *authpublic.AuthenticatedUser + func (ctx *AuthShimContext) UserGuest() *authpublic.AuthenticatedUser + type EnrichUserFunc func(user *authpublic.AuthenticatedUser, cfg *authpublic.Config)