Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AuthType1FA is the string representing an auth log for first-factor authentication. AuthType1FA = "1FA" // AuthTypeTOTP is the string representing an auth log for second-factor authentication via TOTP. AuthTypeTOTP = "TOTP" // AuthTypeWebauthn is the string representing an auth log for second-factor authentication via FIDO2/CTAP2/WebAuthn. AuthTypeWebauthn = "Webauthn" // AuthTypeDuo is the string representing an auth log for second-factor authentication via DUO. AuthTypeDuo = "Duo" )
Variables ¶
View Source
var ErrUserIsBanned = fmt.Errorf("user is banned")
ErrUserIsBanned user is banned error message.
Functions ¶
This section is empty.
Types ¶
type Regulator ¶
type Regulator struct {
// contains filtered or unexported fields
}
Regulator an authentication regulator preventing attackers to brute force the service.
func NewRegulator ¶
func NewRegulator(config schema.RegulationConfiguration, provider storage.RegulatorProvider, clock utils.Clock) *Regulator
NewRegulator create a regulator instance.
Click to show internal directories.
Click to hide internal directories.