This commit is contained in:
jnfrati
2026-04-09 17:15:35 +02:00
parent a3fcf1153a
commit 4501f0f821
2 changed files with 5 additions and 5 deletions

View File

@@ -500,10 +500,10 @@ func (p *Provider) Handler() http.Handler {
// NOTE: by default Dex will use the /logout route to only logout sessions, doesn't invalidate jwt tokens, // NOTE: by default Dex will use the /logout route to only logout sessions, doesn't invalidate jwt tokens,
// to avoid confusion on users, we're not allowing for this, and only enable OIDC logout triggered through // to avoid confusion on users, we're not allowing for this, and only enable OIDC logout triggered through
// the dashboard which will invalidate both the session and the jwt token // the dashboard which will invalidate both the session and the jwt token
if strings.HasSuffix(r.URL.Path, "/logout") && r.FormValue("id_token_hint") == "" { //if strings.HasSuffix(r.URL.Path, "/logout") && r.FormValue("id_token_hint") == "" {
http.Redirect(w, r, "/", http.StatusSeeOther) //http.Redirect(w, r, "/", http.StatusSeeOther)
return //return
} //}
p.dexServer.ServeHTTP(w, r) p.dexServer.ServeHTTP(w, r)
}) })

View File

@@ -216,7 +216,7 @@ func configureMFA(cfg *dex.YAMLConfig) error {
// Has to be caps otherwise it will fail // Has to be caps otherwise it will fail
Type: "TOTP", Type: "TOTP",
Config: rawTotpConfig, Config: rawTotpConfig,
ConnectorTypes: []string{}, ConnectorTypes: []string{"local"},
}} }}
rememberMeEnabled := false rememberMeEnabled := false