@@ 291-300 (lines=10) @@ | ||
288 | * @param SAMLResponse $response |
|
289 | * @return Response |
|
290 | */ |
|
291 | public function renderSamlResponse($view, SAMLResponse $response) |
|
292 | { |
|
293 | $responseContext = $this->getResponseContext(); |
|
294 | ||
295 | return $this->render($view, [ |
|
296 | 'acu' => $responseContext->getDestination(), |
|
297 | 'response' => $this->getResponseAsXML($response), |
|
298 | 'relayState' => $responseContext->getRelayState() |
|
299 | ]); |
|
300 | } |
|
301 | ||
302 | /** |
|
303 | * @param string $view |
@@ 337-349 (lines=13) @@ | ||
334 | * @param SAMLResponse $response |
|
335 | * @return Response |
|
336 | */ |
|
337 | public function renderSamlResponse($view, StateHandler $stateHandler, SAMLResponse $response) |
|
338 | { |
|
339 | $response = $this->render($view, [ |
|
340 | 'acu' => $response->getDestination(), |
|
341 | 'response' => $this->getResponseAsXML($response), |
|
342 | 'relayState' => $stateHandler->getRelayState() |
|
343 | ]); |
|
344 | ||
345 | // clear the state so we can call again :) |
|
346 | $stateHandler->clear(); |
|
347 | ||
348 | return $response; |
|
349 | } |
|
350 | ||
351 | /** |
|
352 | * @param string $view |