@@ 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 |
@@ 164-173 (lines=10) @@ | ||
161 | * @param SAMLResponse $response |
|
162 | * @return Response |
|
163 | */ |
|
164 | public function renderSamlResponse($view, SAMLResponse $response) |
|
165 | { |
|
166 | $responseContext = $this->getResponseContext(); |
|
167 | ||
168 | return $this->render($view, [ |
|
169 | 'acu' => $responseContext->getDestination(), |
|
170 | 'response' => $this->getResponseAsXML($response), |
|
171 | 'relayState' => $responseContext->getRelayState() |
|
172 | ]); |
|
173 | } |
|
174 | ||
175 | /** |
|
176 | * @param string $view |