mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
debug
This commit is contained in:
@@ -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,
|
||||
// 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
|
||||
if strings.HasSuffix(r.URL.Path, "/logout") && r.FormValue("id_token_hint") == "" {
|
||||
http.Redirect(w, r, "/", http.StatusSeeOther)
|
||||
return
|
||||
}
|
||||
//if strings.HasSuffix(r.URL.Path, "/logout") && r.FormValue("id_token_hint") == "" {
|
||||
//http.Redirect(w, r, "/", http.StatusSeeOther)
|
||||
//return
|
||||
//}
|
||||
|
||||
p.dexServer.ServeHTTP(w, r)
|
||||
})
|
||||
|
||||
@@ -216,7 +216,7 @@ func configureMFA(cfg *dex.YAMLConfig) error {
|
||||
// Has to be caps otherwise it will fail
|
||||
Type: "TOTP",
|
||||
Config: rawTotpConfig,
|
||||
ConnectorTypes: []string{},
|
||||
ConnectorTypes: []string{"local"},
|
||||
}}
|
||||
|
||||
rememberMeEnabled := false
|
||||
|
||||
Reference in New Issue
Block a user