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" . }} -
- {{ if eq .Mode "register" }} -

Register security key

-

Register a security key for two-factor authentication.

- {{ else }} -

Two-factor authentication

-

Use your security key to verify your identity.

- {{ end }} - - - - - -
- - + + {{ template "footer.html" . }} diff --git a/management/server/idp/embedded.go b/management/server/idp/embedded.go index 701779374..57f89b749 100644 --- a/management/server/idp/embedded.go +++ b/management/server/idp/embedded.go @@ -228,7 +228,7 @@ func configureMFA(cfg *dex.YAMLConfig) error { RememberMeCheckedByDefault: &rememberMeEnabled, SSOSharedWithDefault: "", } - // Absolutely required, otherwsise the dex server will omit the MFA configuration entirely + // Absolutely required, otherwise the dex server will omit the MFA configuration entirely os.Setenv("DEX_SESSIONS_ENABLED", "true") for i := range cfg.StaticClients {