Skip to content

Commit

Permalink
Merge pull request #95 from ubalogun-arista/patch-1
Browse files Browse the repository at this point in the history
Update decode_response.go
  • Loading branch information
russellhaering authored Sep 21, 2022
2 parents 3ae2e92 + fe73536 commit 00b95be
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 00b95be

Please sign in to comment.