Skip to content

Commit 2d12fd4

Browse files
authored
Bugfix: use correct variable
If response is unsigned, ensure that all assertions are signed before proceeding to process the assertions
1 parent 85b0530 commit 2d12fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response/Processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ private function processAssertions(Response $response): ArrayCollection
153153
);
154154

155155
if (!$this->responseIsSigned) {
156-
foreach ($assertions as $assertion) {
157-
if (!$assertion->wasSignedAtConstruction()) {
156+
foreach ($decryptedAssertions as $assertion) {
157+
if (!$decryptedAssertions->wasSignedAtConstruction()) {
158158
throw new UnsignedResponseException(
159159
'Both the response and the assertion it contains are not signed.',
160160
);

0 commit comments

Comments
 (0)