mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
28 lines
816 B
Go
28 lines
816 B
Go
package schema
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/go-webauthn/webauthn/protocol"
|
|
)
|
|
|
|
// WebauthnConfiguration represents the webauthn config.
|
|
type WebauthnConfiguration struct {
|
|
Disable bool `koanf:"disable"`
|
|
DisplayName string `koanf:"display_name"`
|
|
|
|
ConveyancePreference protocol.ConveyancePreference `koanf:"attestation_conveyance_preference"`
|
|
UserVerification protocol.UserVerificationRequirement `koanf:"user_verification"`
|
|
|
|
Timeout time.Duration `koanf:"timeout"`
|
|
}
|
|
|
|
// DefaultWebauthnConfiguration describes the default values for the WebauthnConfiguration.
|
|
var DefaultWebauthnConfiguration = WebauthnConfiguration{
|
|
DisplayName: "Authelia",
|
|
Timeout: time.Second * 60,
|
|
|
|
ConveyancePreference: protocol.PreferIndirectAttestation,
|
|
UserVerification: protocol.VerificationPreferred,
|
|
}
|