| @@ 196-204 (lines=9) @@ | ||
| 193 | ||
| 194 | $adaptedAssertion = new AssertionAdapter($assertion); |
|
| 195 | $expectedResponse = $stateHandler->getGatewayRequestId(); |
|
| 196 | if (!$adaptedAssertion->inResponseToMatches($expectedResponse)) { |
|
| 197 | $logger->critical(sprintf( |
|
| 198 | 'Received Response with unexpected InResponseTo: "%s", %s', |
|
| 199 | $adaptedAssertion->getInResponseTo(), |
|
| 200 | ($expectedResponse ? 'expected "' . $expectedResponse . '"' : ' no response expected') |
|
| 201 | )); |
|
| 202 | ||
| 203 | return $this->render('unrecoverableError'); |
|
| 204 | } |
|
| 205 | ||
| 206 | $authenticatedNameId = $assertion->getNameId(); |
|
| 207 | $isSubjectRequested = $stateHandler->hasSubject(); |
|
| @@ 129-137 (lines=9) @@ | ||
| 126 | ||
| 127 | $adaptedAssertion = new AssertionAdapter($assertion); |
|
| 128 | $expectedInResponseTo = $responseContext->getExpectedInResponseTo(); |
|
| 129 | if (!$adaptedAssertion->inResponseToMatches($expectedInResponseTo)) { |
|
| 130 | $logger->critical(sprintf( |
|
| 131 | 'Received Response with unexpected InResponseTo: "%s", %s', |
|
| 132 | $adaptedAssertion->getInResponseTo(), |
|
| 133 | ($expectedInResponseTo ? 'expected "' . $expectedInResponseTo . '"' : ' no response expected') |
|
| 134 | )); |
|
| 135 | ||
| 136 | return $this->render('unrecoverableError'); |
|
| 137 | } |
|
| 138 | ||
| 139 | $logger->notice('Successfully processed SAMLResponse'); |
|
| 140 | ||