From 16e0c4738c24da94e8d31c34a442ef9bec2fdca5 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Wed, 15 Jan 2025 10:52:50 -0800 Subject: [PATCH] fix: improve saml assertion logging --- internal/api/samlacs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/samlacs.go b/internal/api/samlacs.go index cc99a5274c..8627f93505 100644 --- a/internal/api/samlacs.go +++ b/internal/api/samlacs.go @@ -189,7 +189,7 @@ func (a *API) handleSamlAcs(w http.ResponseWriter, r *http.Request) error { spAssertion, err := serviceProvider.ParseResponse(r, requestIds) if err != nil { if ire, ok := err.(*saml.InvalidResponseError); ok { - return badRequestError(ErrorCodeValidationFailed, "SAML Assertion is not valid").WithInternalError(ire.PrivateErr) + return badRequestError(ErrorCodeValidationFailed, "SAML Assertion is not valid %s", ire.Response).WithInternalError(ire.PrivateErr) } return badRequestError(ErrorCodeValidationFailed, "SAML Assertion is not valid").WithInternalError(err)