fix: remove whitespace from sso cert (#8141)

* fix: remove whitespace from sso cert

* fix: use trimspace instead

* fix: use replaceall
This commit is contained in:
Nityananda Gohain 2025-06-06 14:33:46 +05:30 committed by GitHub
parent 72b0214d1d
commit 44ea237039
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,9 @@ func (od *GettableOrgDomain) GetSAMLIdpURL() string {
func (od *GettableOrgDomain) GetSAMLCert() string {
if od.SamlConfig != nil {
return od.SamlConfig.SamlCert
// remove any whitespaces from the cert
cert := strings.ReplaceAll(od.SamlConfig.SamlCert, " ", "")
return cert
}
return ""
}