@@ 296-308 (lines=13) @@ | ||
293 | * @param SAMLResponse $response |
|
294 | * @return Response |
|
295 | */ |
|
296 | public function renderSamlResponse($view, StateHandler $stateHandler, SAMLResponse $response) |
|
297 | { |
|
298 | $response = $this->render($view, [ |
|
299 | 'acu' => $response->getDestination(), |
|
300 | 'response' => $this->getResponseAsXML($response), |
|
301 | 'relayState' => $stateHandler->getRelayState() |
|
302 | ]); |
|
303 | ||
304 | // clear the state so we can call again :) |
|
305 | $stateHandler->clear(); |
|
306 | ||
307 | return $response; |
|
308 | } |
|
309 | ||
310 | /** |
|
311 | * @param string $view |
@@ 256-265 (lines=10) @@ | ||
253 | * @param SAMLResponse $response |
|
254 | * @return Response |
|
255 | */ |
|
256 | public function renderSamlResponse($view, SAMLResponse $response) |
|
257 | { |
|
258 | $responseContext = $this->getResponseContext(); |
|
259 | ||
260 | return $this->render($view, [ |
|
261 | 'acu' => $responseContext->getDestination(), |
|
262 | 'response' => $this->getResponseAsXML($response), |
|
263 | 'relayState' => $responseContext->getRelayState() |
|
264 | ]); |
|
265 | } |
|
266 | ||
267 | /** |
|
268 | * @param string $view |