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