@@ 273-283 (lines=11) @@ | ||
270 | * @param string $destination |
|
271 | * @return SAMLResponse |
|
272 | */ |
|
273 | private function createResponseFailureResponse(Provider $provider, $destination, $message) |
|
274 | { |
|
275 | $response = $this->createResponse($provider, $destination); |
|
276 | $response->setStatus([ |
|
277 | 'Code' => Constants::STATUS_RESPONDER, |
|
278 | 'SubCode' => Constants::STATUS_AUTHN_FAILED, |
|
279 | 'Message' => $message |
|
280 | ]); |
|
281 | ||
282 | return $response; |
|
283 | } |
|
284 | ||
285 | /** |
|
286 | * Response that indicates that the authentication could not be performed correctly. In this context it means |
|
@@ 293-302 (lines=10) @@ | ||
290 | * @param string $destination |
|
291 | * @return SAMLResponse |
|
292 | */ |
|
293 | private function createAuthnFailedResponse(Provider $provider, $destination) |
|
294 | { |
|
295 | $response = $this->createResponse($provider, $destination); |
|
296 | $response->setStatus( |
|
297 | [ |
|
298 | 'Code' => Constants::STATUS_RESPONDER, |
|
299 | 'SubCode' => Constants::STATUS_AUTHN_FAILED, |
|
300 | ] |
|
301 | ); |
|
302 | ||
303 | return $response; |
|
304 | } |
|
305 |