From bd53513fe310c140c7ff8337e69be1338c3068ec Mon Sep 17 00:00:00 2001 From: nityanandagohain Date: Tue, 3 Jun 2025 22:11:10 +0530 Subject: [PATCH] fix: remove whitespace from sso cert --- pkg/types/domain.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 "" }