Skip to content

Commit b31ea51

Browse files
committed
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
2 parents 3393cba + 3ec651c commit b31ea51

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: cookbook/security/custom_authentication_provider.rst

-6
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)