diff --git a/idp/dex/config.go b/idp/dex/config.go index 46d034c12..c2fcdc8ce 100644 --- a/idp/dex/config.go +++ b/idp/dex/config.go @@ -54,10 +54,10 @@ type YAMLConfig struct { // Sessions holds authentication session configuration. // Requires DEX_SESSIONS_ENABLED=true feature flag. - Sessions *Sessions `json:"sessions"` + Sessions *Sessions `yaml:"sessions" json:"sessions"` // MFA holds multi-factor authentication configuration. - MFA MFAConfig `json:"mfa"` + MFA MFAConfig `yaml:"mfa" json:"mfa"` } type Sessions struct { @@ -563,6 +563,11 @@ func buildSessionsConfig(sessions *Sessions) *server.SessionConfig { return nil } + if sessions.RememberMeCheckedByDefault == nil { + defaultRememberMeCheckedByDefault := false + sessions.RememberMeCheckedByDefault = &defaultRememberMeCheckedByDefault + } + absoluteLifetime, _ := parseDuration(sessions.AbsoluteLifetime) validIfNotUsedFor, _ := parseDuration(sessions.ValidIfNotUsedFor) diff --git a/idp/dex/web/templates/webauthn_verify.html b/idp/dex/web/templates/webauthn_verify.html index 77e3b54c8..be7c938ae 100644 --- a/idp/dex/web/templates/webauthn_verify.html +++ b/idp/dex/web/templates/webauthn_verify.html @@ -1,174 +1,12 @@ - {{ template "header.html" . }} -
Register a security key for two-factor authentication.
- {{ else }} -Use your security key to verify your identity.
- {{ end }} - - - - - -