| @@ 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 |
|
| @@ 228-240 (lines=13) @@ | ||
| 225 | * @param SAMLResponse $response |
|
| 226 | * @return Response |
|
| 227 | */ |
|
| 228 | public function renderSamlResponse($view, StateHandler $stateHandler, SAMLResponse $response) |
|
| 229 | { |
|
| 230 | $response = $this->render($view, [ |
|
| 231 | 'acu' => $response->getDestination(), |
|
| 232 | 'response' => $this->getResponseAsXML($response), |
|
| 233 | 'relayState' => $stateHandler->getRelayState() |
|
| 234 | ]); |
|
| 235 | ||
| 236 | // clear the state so we can call again :) |
|
| 237 | $stateHandler->clear(); |
|
| 238 | ||
| 239 | return $response; |
|
| 240 | } |
|
| 241 | ||
| 242 | /** |
|
| 243 | * @param string $view |
|