Versions in this module Expand all Collapse all v1 v1.2.0 Mar 16, 2026 Changes in this version + func GetMiddleware() gin.HandlerFunc + func Register(item Authenticator) error + type Authenticator interface + Authenticate func(c *gin.Context) (*models.User, error) + GetID func() string + func GetAuthenticators() []Authenticator + type AuthenticatorRegistry struct + type LocalAuthenticator struct + func GetLocalAuthenticator() (*LocalAuthenticator, error) + func NewLocalAuthenticator(secret string, register string) (*LocalAuthenticator, error) + func (a *LocalAuthenticator) AllowRegistration(register string) bool + func (a *LocalAuthenticator) Authenticate(c *gin.Context) (*models.User, error) + func (a *LocalAuthenticator) GenerateToken(userID string) (string, error) + func (a *LocalAuthenticator) GetID() string + func (a *LocalAuthenticator) HashPassword(password string) (string, error) + func (a *LocalAuthenticator) VerifyPassword(password, hash string) error + type OIDCAuthenticator struct + func NewOIDCAuthenticator(issuer, clientID string) (*OIDCAuthenticator, error) + func (a *OIDCAuthenticator) Authenticate(c *gin.Context) (*models.User, error) + func (a *OIDCAuthenticator) GetID() string