mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
104a61ecd6
Prevents the TOTP user config from being requested when the user has not registered or is already authenticated 2FA.
24 lines
770 B
Go
24 lines
770 B
Go
package regulation
|
|
|
|
import "fmt"
|
|
|
|
// ErrUserIsBanned user is banned error message.
|
|
var ErrUserIsBanned = fmt.Errorf("user is banned")
|
|
|
|
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"
|
|
|
|
// AuthTypeU2F is the string representing an auth log for second-factor authentication via FIDO/CTAP1/U2F.
|
|
AuthTypeU2F = "U2F"
|
|
|
|
// AuthTypeWebAuthn is the string representing an auth log for second-factor authentication via FIDO2/CTAP2/WebAuthn.
|
|
// TODO: Add WebAuthn.
|
|
|
|
// AuthTypeDuo is the string representing an auth log for second-factor authentication via DUO.
|
|
AuthTypeDuo = "Duo"
|
|
)
|