diff --git a/pkg/types/domain.go b/pkg/types/domain.go index 1ea6eb50de..31315e9cc3 100644 --- a/pkg/types/domain.go +++ b/pkg/types/domain.go @@ -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 "" }