From 3ec651cb2bc519d82f78e9e7fa8f15e4259fe8ec Mon Sep 17 00:00:00 2001 From: Mitchel Date: Tue, 10 Jun 2014 15:24:04 +0200 Subject: [PATCH] Update custom_authentication_provider.rst Removed response because it will always be overwritten "By default deny authorization" response --- cookbook/security/custom_authentication_provider.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cookbook/security/custom_authentication_provider.rst b/cookbook/security/custom_authentication_provider.rst index 42f098464ab..73f76f2857e 100644 --- a/cookbook/security/custom_authentication_provider.rst +++ b/cookbook/security/custom_authentication_provider.rst @@ -159,12 +159,6 @@ set an authenticated token in the security context if successful. // $this->securityContext->setToken(null); // } // return; - - // Deny authentication with a '403 Forbidden' HTTP response - $response = new Response(); - $response->setStatusCode(Response::HTTP_FORBIDDEN); - $event->setResponse($response); - } // By default deny authorization