Reverse proxy authentication support (#1152)

* feat(auth): reverse proxy authentication support - #176

* address PR remarks

* Fix redaction of UI appConfig

Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Igor Rzegocki
2021-06-12 03:17:21 +00:00
committed by GitHub
parent b445cdd641
commit 6bd4c0f6bf
8 changed files with 216 additions and 3 deletions
+7
View File
@@ -121,6 +121,13 @@ func TestEntryDataValues(t *testing.T) {
expected: logrus.Fields{"Description": "His name is [REDACTED]"},
description: "William should have been redacted, but was not.",
},
{
name: "map value",
redactionList: []string{"William"},
logFields: logrus.Fields{"Description": map[string]string{"name": "His name is William"}},
expected: logrus.Fields{"Description": "map[name:His name is [REDACTED]]"},
description: "William should have been redacted, but was not.",
},
}
for _, test := range tests {