| @@ 282-292 (lines=11) @@ | ||
| 279 | * @param string $destination |
|
| 280 | * @return SAMLResponse |
|
| 281 | */ |
|
| 282 | private function createResponseFailureResponse(Provider $provider, $destination, $message) |
|
| 283 | { |
|
| 284 | $response = $this->createResponse($provider, $destination); |
|
| 285 | $response->setStatus([ |
|
| 286 | 'Code' => Constants::STATUS_RESPONDER, |
|
| 287 | 'SubCode' => Constants::STATUS_AUTHN_FAILED, |
|
| 288 | 'Message' => $message |
|
| 289 | ]); |
|
| 290 | ||
| 291 | return $response; |
|
| 292 | } |
|
| 293 | ||
| 294 | /** |
|
| 295 | * Response that indicates that the authentication could not be performed correctly. In this context it means |
|
| @@ 302-311 (lines=10) @@ | ||
| 299 | * @param string $destination |
|
| 300 | * @return SAMLResponse |
|
| 301 | */ |
|
| 302 | private function createAuthnFailedResponse(Provider $provider, $destination) |
|
| 303 | { |
|
| 304 | $response = $this->createResponse($provider, $destination); |
|
| 305 | $response->setStatus( |
|
| 306 | [ |
|
| 307 | 'Code' => Constants::STATUS_RESPONDER, |
|
| 308 | 'SubCode' => Constants::STATUS_AUTHN_FAILED, |
|
| 309 | ] |
|
| 310 | ); |
|
| 311 | ||
| 312 | return $response; |
|
| 313 | } |
|
| 314 | ||