@@ 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(); |
@@ 139-147 (lines=9) @@ | ||
136 | ||
137 | $adaptedAssertion = new AssertionAdapter($assertion); |
|
138 | $expectedInResponseTo = $responseContext->getExpectedInResponseTo(); |
|
139 | if (!$adaptedAssertion->inResponseToMatches($expectedInResponseTo)) { |
|
140 | $logger->critical(sprintf( |
|
141 | 'Received Response with unexpected InResponseTo: "%s", %s', |
|
142 | $adaptedAssertion->getInResponseTo(), |
|
143 | ($expectedInResponseTo ? 'expected "' . $expectedInResponseTo . '"' : ' no response expected') |
|
144 | )); |
|
145 | ||
146 | return $this->render('unrecoverableError'); |
|
147 | } |
|
148 | ||
149 | $logger->notice('Successfully processed SAMLResponse'); |
|
150 |