1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 22:39:18 +01:00

feat: add DOZZLE_AUTH_LOGOUT_URL support for ForwarderProxy (#4151)

This commit is contained in:
Dmitry Mazurov
2025-09-26 20:44:14 +03:00
committed by GitHub
parent 020342a1bd
commit 29f06eb00d
8 changed files with 28 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import (
"html/template"
"io"
"sort"
"strings"
"encoding/json"
@@ -54,6 +55,10 @@ func (h *handler) executeTemplate(w http.ResponseWriter, req *http.Request) {
config["enableDownload"] = true
}
if h.config.Authorization.Provider == FORWARD_PROXY && strings.TrimSpace(h.config.Authorization.LogoutUrl) != "" {
config["logoutUrl"] = strings.TrimSpace(h.config.Authorization.LogoutUrl)
}
config["authProvider"] = h.config.Authorization.Provider
config["version"] = h.config.Version
config["hostname"] = h.config.Hostname