Add cookie encryption and session share between tabs

This commit is contained in:
braginini
2026-04-17 17:13:30 +02:00
parent 5a1d30f80b
commit 08c3014e9c

View File

@@ -252,7 +252,8 @@ func configureMFA(cfg *dex.YAMLConfig, sessionMaxLifetime, sessionIdleTimeout st
AbsoluteLifetime: sessionMaxLifetime,
ValidIfNotUsedFor: sessionIdleTimeout,
RememberMeCheckedByDefault: &rememberMe,
SSOSharedWithDefault: "",
SSOSharedWithDefault: "all",
CookieEncryptionKey: "32",
}
// Absolutely required, otherwise the dex server will omit the MFA configuration entirely
os.Setenv("DEX_SESSIONS_ENABLED", "true")