@@ 356-368 (lines=13) @@ | ||
353 | * @param SAMLResponse $response |
|
354 | * @return Response |
|
355 | */ |
|
356 | public function renderSamlResponse($view, StateHandler $stateHandler, SAMLResponse $response) |
|
357 | { |
|
358 | $response = $this->render($view, [ |
|
359 | 'acu' => $response->getDestination(), |
|
360 | 'response' => $this->getResponseAsXML($response), |
|
361 | 'relayState' => $stateHandler->getRelayState() |
|
362 | ]); |
|
363 | ||
364 | // clear the state so we can call again :) |
|
365 | $stateHandler->clear(); |
|
366 | ||
367 | return $response; |
|
368 | } |
|
369 | ||
370 | /** |
|
371 | * @param string $view |
@@ 162-171 (lines=10) @@ | ||
159 | * @param SAMLResponse $response |
|
160 | * @return Response |
|
161 | */ |
|
162 | public function renderSamlResponse($view, SAMLResponse $response) |
|
163 | { |
|
164 | $responseContext = $this->getResponseContext(); |
|
165 | ||
166 | return $this->render($view, [ |
|
167 | 'acu' => $responseContext->getDestination(), |
|
168 | 'response' => $this->getResponseAsXML($response), |
|
169 | 'relayState' => $responseContext->getRelayState() |
|
170 | ]); |
|
171 | } |
|
172 | ||
173 | /** |
|
174 | * @param string $view |