fix: remove whitespace from sso cert

This commit is contained in:
nityanandagohain 2025-06-03 22:11:10 +05:30
parent ad2d4ed56c
commit bd53513fe3

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 ""
}