Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security] Replace 403 with 401 in onAuthenticationFailure method #35606

Merged

Conversation

alanpoulain
Copy link
Contributor

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.

@chalasr
Copy link
Member

chalasr commented Feb 5, 2020

Note for mergers: When merging this up to master, the patch should be applied to the AuthententicatorInterface as of 4.4.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Feb 5, 2020
@nicolas-grekas
Copy link
Member

Thank you @alanpoulain.

nicolas-grekas added a commit that referenced this pull request Feb 5, 2020
…ure` 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
@nicolas-grekas nicolas-grekas merged commit 73bc793 into symfony:3.4 Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants