mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
ef3c2faeb5
This resolves an issue where if you have zero two_factor ACL rules but enabled two_factor OIDC clients, 2FA is reported as disabled.
26 lines
565 B
Go
26 lines
565 B
Go
package authorization
|
|
|
|
// Level is the type representing an authorization level.
|
|
type Level int
|
|
|
|
const (
|
|
// Bypass bypass level.
|
|
Bypass Level = iota
|
|
// OneFactor one factor level.
|
|
OneFactor Level = iota
|
|
// TwoFactor two factor level.
|
|
TwoFactor Level = iota
|
|
// Denied denied level.
|
|
Denied Level = iota
|
|
)
|
|
|
|
const userPrefix = "user:"
|
|
const groupPrefix = "group:"
|
|
|
|
const bypass = "bypass"
|
|
const oneFactor = "one_factor"
|
|
const twoFactor = "two_factor"
|
|
const deny = "deny"
|
|
|
|
const traceFmtACLHitMiss = "ACL %s Position %d for subject %s and object %s (Method %s)"
|