3
0
corteza/auth/settings/settings.go
2021-03-07 18:58:16 +01:00

43 lines
719 B
Go

package settings
type (
Settings struct {
LocalEnabled bool
SignupEnabled bool
EmailConfirmationRequired bool
PasswordResetEnabled bool
ExternalEnabled bool
Providers []Provider
MultiFactor struct {
EmailOTP struct {
// Can users use email for MFA
Enabled bool
// Is MFA with email enforced?
Enforced bool
}
TOTP struct {
// Can users use TOTP MFA?
Enabled bool
// Is TOTP MFA enforced?
Enforced bool
// TOTP issuer
Issuer string
}
}
}
Provider struct {
Handle string
Label string
IssuerUrl string
Key string
RedirectUrl string
Secret string
}
)