Skip to content

Commit

Permalink
minor #3929 Update custom_authentication_provider.rst (verschoof)
Browse files Browse the repository at this point in the history
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 b31ea51
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 b31ea51

Please sign in to comment.