2019-04-25 04:52:08 +07:00
|
|
|
package regulation
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2020-05-02 12:06:39 +07:00
|
|
|
// ErrUserIsBanned user is banned error message.
|
2021-07-08 09:04:43 +07:00
|
|
|
var ErrUserIsBanned = fmt.Errorf("user is banned")
|
2021-11-29 10:09:14 +07:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2021-12-02 17:28:16 +07:00
|
|
|
// AuthTypeU2F is the string representing an auth log for second-factor authentication via FIDO/CTAP1/U2F.
|
|
|
|
AuthTypeU2F = "U2F"
|
2021-11-29 10:09:14 +07:00
|
|
|
|
2021-12-02 17:28:16 +07:00
|
|
|
// AuthTypeWebAuthn is the string representing an auth log for second-factor authentication via FIDO2/CTAP2/WebAuthn.
|
|
|
|
// TODO: Add WebAuthn.
|
2021-11-29 10:09:14 +07:00
|
|
|
|
2021-12-02 17:28:16 +07:00
|
|
|
// AuthTypeDuo is the string representing an auth log for second-factor authentication via DUO.
|
|
|
|
AuthTypeDuo = "Duo"
|
2021-11-29 10:09:14 +07:00
|
|
|
)
|