Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ec651c

Browse files
verschoofweaverryan
authored andcommitted
Update custom_authentication_provider.rst
Removed response because it will always be overwritten "By default deny authorization" response
1 parent 3393cba commit 3ec651c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cookbook/security/custom_authentication_provider.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ set an authenticated token in the security context if successful.
159159
// $this->securityContext->setToken(null);
160160
// }
161161
// return;
162-
163-
// Deny authentication with a '403 Forbidden' HTTP response
164-
$response = new Response();
165-
$response->setStatusCode(Response::HTTP_FORBIDDEN);
166-
$event->setResponse($response);
167-
168162
}
169163
170164
// By default deny authorization

0 commit comments

Comments
 (0)