From a2b5d03b62bf616b36b93c371f3d48d395b78cd7 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Wed, 29 Oct 2025 19:34:35 +0100 Subject: [PATCH] Style Signed-off-by: Bryan Frimin --- pkg/auth/saml_config_validator.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/auth/saml_config_validator.go b/pkg/auth/saml_config_validator.go index 8f6166652..540a1536f 100644 --- a/pkg/auth/saml_config_validator.go +++ b/pkg/auth/saml_config_validator.go @@ -19,6 +19,8 @@ import ( "encoding/pem" "fmt" "net/url" + + pemutil "github.com/getprobo/probo/pkg/crypto/pem" ) type ValidationError struct { @@ -114,7 +116,7 @@ func validateCertificate(certPEM string) error { return fmt.Errorf("cannot parse certificate PEM") } - if block.Type != "CERTIFICATE" { + if block.Type != pemutil.BlockTypeCertificate { return fmt.Errorf("PEM block type must be CERTIFICATE (found: %s)", block.Type) }