mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
b2cbcf3913
This fixes an issue where consent sessions prevent the standard workflow.
40 lines
726 B
Go
40 lines
726 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
|
|
// TwoFactor two factor level.
|
|
TwoFactor
|
|
// Denied denied level.
|
|
Denied
|
|
)
|
|
|
|
const (
|
|
prefixUser = "user:"
|
|
prefixGroup = "group:"
|
|
)
|
|
|
|
const (
|
|
bypass = "bypass"
|
|
oneFactor = "one_factor"
|
|
twoFactor = "two_factor"
|
|
deny = "deny"
|
|
)
|
|
|
|
const (
|
|
subexpNameUser = "User"
|
|
subexpNameGroup = "Group"
|
|
)
|
|
|
|
var (
|
|
// IdentitySubexpNames is a list of valid regex subexp names.
|
|
IdentitySubexpNames = []string{subexpNameUser, subexpNameGroup}
|
|
)
|
|
|
|
const traceFmtACLHitMiss = "ACL %s Position %d for subject %s and object %s (Method %s)"
|