2019-04-24 21:52:08 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// TOTPConfiguration represents the configuration related to TOTP options.
|
|
|
|
type TOTPConfiguration struct {
|
2021-08-03 09:55:21 +00:00
|
|
|
Issuer string `koanf:"issuer"`
|
|
|
|
Period int `koanf:"period"`
|
|
|
|
Skew *int `koanf:"skew"`
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|
2020-04-05 12:37:21 +00:00
|
|
|
|
|
|
|
var defaultOtpSkew = 1
|
2020-04-20 21:03:38 +00:00
|
|
|
|
|
|
|
// DefaultTOTPConfiguration represents default configuration parameters for TOTP generation.
|
2020-04-05 12:37:21 +00:00
|
|
|
var DefaultTOTPConfiguration = TOTPConfiguration{
|
|
|
|
Issuer: "Authelia",
|
|
|
|
Period: 30,
|
|
|
|
Skew: &defaultOtpSkew,
|
|
|
|
}
|