fix: trim whitespaces in redirect, post and origins uris set through console (#7334)

* fix: trim whitespaces in redirect, postlogout and origins uris set through console

* fix: add @livio-a review suggestions
This commit is contained in:
Miguel Cabrerizo
2024-02-12 09:56:55 +01:00
committed by GitHub
parent f0ba2b955a
commit 83ed1f37d8
3 changed files with 267 additions and 14 deletions

View File

@@ -141,7 +141,7 @@ func (a *OIDCApp) IsValid() bool {
func (a *OIDCApp) OriginsValid() bool {
for _, origin := range a.AdditionalOrigins {
if !http_util.IsOrigin(origin) {
if !http_util.IsOrigin(strings.TrimSpace(origin)) {
return false
}
}