diff --git a/pkg/types/domain.go b/pkg/types/domain.go index 31315e9cc3..0ac7a4faa8 100644 --- a/pkg/types/domain.go +++ b/pkg/types/domain.go @@ -103,7 +103,7 @@ func (od *GettableOrgDomain) GetSAMLIdpURL() string { func (od *GettableOrgDomain) GetSAMLCert() string { if od.SamlConfig != nil { // remove any whitespaces from the cert - cert := strings.ReplaceAll(od.SamlConfig.SamlCert, " ", "") + cert := strings.TrimSpace(od.SamlConfig.SamlCert) return cert } return ""