8000 minor #35606 [Security] Replace 403 with 401 in `onAuthenticationFail… · symfony/symfony@adacae6 · GitHub
[go: up one dir, main page]

Skip to content

Commit adacae6

Browse files
minor #35606 [Security] Replace 403 with 401 in onAuthenticationFailure method (alanpoulain)
This PR was merged into the 3.4 branch. Discussion ---------- [Security] Replace 403 with 401 in `onAuthenticationFailure` method | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A This comment in `onAuthenticationFailure` was misleading since a 401 status code should probably be returned instead of a 403. Commits ------- 73bc793 Replace 403 with 401 in onAuthenticationFailure method
2 parents c2e0aab + 73bc793 commit adacae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function createAuthenticatedToken(UserInterface $user, $providerKey);
107107
* Called when authentication executed, but failed (e.g. wrong username password).
108108
*
109< 5793 /code>109
* This should return the Response sent back to the user, like a
110-
* RedirectResponse to the login page or a 403 response.
110+
* RedirectResponse to the login page or a 401 response.
111111
*
112112
* If you return null, the request will continue, but the user will
113113
* not be authenticated. This is probably not what you want to do.

0 commit comments

Comments
 (0)
0