mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
2e784084c7
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
18 lines
470 B
Go
18 lines
470 B
Go
package schema
|
|
|
|
// TOTPConfiguration represents the configuration related to TOTP options.
|
|
type TOTPConfiguration struct {
|
|
Issuer string `mapstructure:"issuer"`
|
|
Period int `mapstructure:"period"`
|
|
Skew *int `mapstructure:"skew"`
|
|
}
|
|
|
|
var defaultOtpSkew = 1
|
|
|
|
// DefaultTOTPConfiguration represents default configuration parameters for TOTP generation.
|
|
var DefaultTOTPConfiguration = TOTPConfiguration{
|
|
Issuer: "Authelia",
|
|
Period: 30,
|
|
Skew: &defaultOtpSkew,
|
|
}
|