mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
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:
parent
72b0214d1d
commit
44ea237039
@ -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 ""
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user