Skip to content

Commit

Permalink
Update custom_authentication_provider.rst
Browse files Browse the repository at this point in the history
Removed response because it will always be overwritten "By default deny authorization" response
  • Loading branch information
verschoof authored and weaverryan committed Jun 11, 2014
1 parent 3393cba commit 3ec651c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cookbook/security/custom_authentication_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ec651c

Please sign in to comment.