summaryrefslogtreecommitdiff
path: root/internal/regulation/const.go
blob: 9863d5995bc4f8be5470a6426395f1fe24797d84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"

	// AuthTypePasskey is the string representing an auth log for first-factor passkey authentication.
	AuthTypePasskey = "Passkey"

	// 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"

	// AuthTypePassword is the string representing an auth log for second-factor authentication via a Password.
	AuthTypePassword = "Password"
)

const (
	typeUser        = "user"
	typeIP          = "ip"
	fieldBanType    = "ban_type"
	fieldUsername   = "username"
	fieldRecordType = "record_type"
)