Permalink
Browse files

minor #3929 Update custom_authentication_provider.rst (verschoof)

This PR was submitted for the 2.5 branch but it was merged into the 2.4 branch instead (closes #3929).

Discussion
----------

Update custom_authentication_provider.rst

Removed response because it will always be overwritten "By default deny authorization" response

Commits
-------

d136ac8 Update custom_authentication_provider.rst
  • Loading branch information...
weaverryan committed Jun 11, 2014
2 parents 3393cba + 3ec651c commit b31ea51f524017bbfe7906f7b46a59dfe2ac9f48
Showing with 0 additions and 6 deletions.
  1. +0 −6 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

0 comments on commit b31ea51

Please sign in to comment.