*: strip leading and trailing whitespace when reading config values from files

also add a debug endpoint that dumps the go parsed config

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2023-01-09 15:29:22 +01:00
parent db60427e21
commit a1be924fa4
3 changed files with 9 additions and 2 deletions

View File

@ -135,7 +135,7 @@ func (c *Config) parseScheme(rawVal string) string {
if err != nil {
return u.RawQuery
}
return string(d)
return strings.TrimSpace(string(d))
}
return rawVal
}