Skip to content

Commit

Permalink
Update decode_response.go
Browse files Browse the repository at this point in the history
Changed the error value returned when there is an error in parsing the decrypted SAML assertion.
  • Loading branch information
ubalogun-arista authored Sep 21, 2022
1 parent 3ae2e92 commit 7adb4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -446,4 +446,4 @@ func (sp *SAMLServiceProvider) ValidateEncodedLogoutResponsePOST(encodedResponse
}

return decodedResponse, nil
}
}

0 comments on commit 7adb4dd

Please sign in to comment.