Documentation ¶
Index ¶
- func ComparePassword(password string, hash string) error
- func HashPassword(password string) (string, error)
- func NewLocalPasswordAuthenticator(userRepository core.UserRepository, twoFactorService core.TwoFactorAuthService) *localPasswordAuthenticator
- func NewSessionCleaner(sessions core.SessionRepository, clock core.Clock, interval time.Duration, ...) *sessionCleaner
- func NewSessionManager(sessionRepository core.SessionRepository, clock core.Clock, ...) core.SessionManager
- func NewTokenService(tokenRepository core.TokenRepository) core.TokenService
- func NewTwoFactorAuthService(twoFactorSettingsRepository core.TwoFactorSettingsRepository, ...) core.TwoFactorAuthService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func HashPassword ¶
HashPassword hashes the password using bcrypt.
func NewLocalPasswordAuthenticator ¶
func NewLocalPasswordAuthenticator( userRepository core.UserRepository, twoFactorService core.TwoFactorAuthService, ) *localPasswordAuthenticator
func NewSessionCleaner ¶
func NewSessionManager ¶
func NewTokenService ¶
func NewTokenService(tokenRepository core.TokenRepository) core.TokenService
func NewTwoFactorAuthService ¶
func NewTwoFactorAuthService( twoFactorSettingsRepository core.TwoFactorSettingsRepository, userRepository core.UserRepository, cfg *config.TOTPConfig, ) core.TwoFactorAuthService
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.