Skip to content

Commit d6030cc

Browse files
authored
fix: improve saml assertion logging (#1915)
## What kind of change does this PR introduce? * Logs the `Response` returned from the library as well
1 parent a4c692f commit d6030cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/samlacs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (a *API) handleSamlAcs(w http.ResponseWriter, r *http.Request) error {
189189
spAssertion, err := serviceProvider.ParseResponse(r, requestIds)
190190
if err != nil {
191191
if ire, ok := err.(*saml.InvalidResponseError); ok {
192-
return badRequestError(ErrorCodeValidationFailed, "SAML Assertion is not valid").WithInternalError(ire.PrivateErr)
192+
return badRequestError(ErrorCodeValidationFailed, "SAML Assertion is not valid %s", ire.Response).WithInternalError(ire.PrivateErr)
193193
}
194194

195195
return badRequestError(ErrorCodeValidationFailed, "SAML Assertion is not valid").WithInternalError(err)

0 commit comments

Comments
 (0)