authelia/internal/configuration/schema/identity_validation.go

22 lines
649 B
Go

package schema
import (
"time"
)
type IdentityValidation struct {
PasswordReset ResetPasswordIdentityValidation `koanf:"password_reset"`
SessionElevation CredentialRegistrationIdentityValidation `koanf:"session_elevation"`
}
type ResetPasswordIdentityValidation struct {
EmailExpiration time.Duration `koanf:"email_expiration"`
}
type CredentialRegistrationIdentityValidation struct {
EmailExpiration time.Duration `koanf:"email_expiration"`
ElevationExpiration time.Duration `koanf:"elevation_expiration"`
OTPCharacters int `koanf:"otp_characters"`
Skip2FA bool `koanf:"skip_2fa"`
}