blob: 843d03c06ebf149181c9cee7d62f8b8ab50236c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  | 
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,
}
  |