From 7adb4dd2c3a4eb99e469849810f4960b0b3476a4 Mon Sep 17 00:00:00 2001 From: ubalogun-arista <114108609+ubalogun-arista@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:02:54 -0500 Subject: [PATCH 1/3] Update decode_response.go Changed the error value returned when there is an error in parsing the decrypted SAML assertion. --- decode_response.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode_response.go b/decode_response.go index a322d5c..025d1e3 100644 --- a/decode_response.go +++ b/decode_response.go @@ -176,7 +176,7 @@ func (sp *SAMLServiceProvider) decryptAssertions(el *etree.Element) error { doc, _, err := parseResponse(raw) if err != nil { - return fmt.Errorf("unable to create element from decrypted assertion bytes: %v", derr) + return fmt.Errorf("unable to create element from decrypted assertion bytes: %v", err) } // Replace the original encrypted assertion with the decrypted one. @@ -446,4 +446,4 @@ func (sp *SAMLServiceProvider) ValidateEncodedLogoutResponsePOST(encodedResponse } return decodedResponse, nil -} \ No newline at end of file +} From 38ff00a3912e477e191dcc6117e2059d9c72eafd Mon Sep 17 00:00:00 2001 From: ubalogun-arista <114108609+ubalogun-arista@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:10:16 -0500 Subject: [PATCH 2/3] Update decode_response.go From fe73536d90d34a37431bf33e138339f033d8f45d Mon Sep 17 00:00:00 2001 From: ubalogun-arista <114108609+ubalogun-arista@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:11:09 -0500 Subject: [PATCH 3/3] Update decode_response.go