3
0
Files
corteza/auth/settings/settings.go
Vivek Patel 3ac2a1f3fa Extends user add cli command
- Adds flag `make-password-link` to generate temp token to create users password
- Adds route and handler for create user password
- Updates few auth label translation reference
- Fixes reset-password issue with existing login session
- Updates tests
2021-09-12 12:49:34 +05:30

71 lines
1.2 KiB
Go

package settings
type (
Settings struct {
LocalEnabled bool
SignupEnabled bool
EmailConfirmationRequired bool
PasswordResetEnabled bool
PasswordCreateEnabled bool
ExternalEnabled bool
SplitCredentialsCheck bool
Providers []Provider
Saml SAML
MultiFactor MultiFactor
}
SAML struct {
Enabled bool
// SAML certificate
Cert string
// SAML certificate private key
Key string
// Identity provider hostname
IDP struct {
URL string
Name string
// identifier payload from idp
IdentName string
IdentHandle string
IdentIdentifier string
}
}
MultiFactor struct {
EmailOTP EmailOTP
TOTP TOTP
}
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
}
)