-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Make onAuthenticationSuccess Response optional #48288
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
Conversation
Hey! Thanks for your PR. You are targeting branch "6.2" but it seems your PR description refers to branch "6.3 for features / 4.4, 5.4, 6.0, 6.1, or 6.2 for bug fixes ". Cheers! Carsonbot |
src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd merge this as a regular bugfix: in 5.4, returning null was allowed and handled by the code.
See #50092
Thank you @db306. |
…(db306) This PR was merged into the 6.2 branch. Discussion ---------- [Security] Make onAuthenticationSuccess Response optional | Q | A | ------------- | --- | Branch? | 6.0, 6.1, and 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT Most authenticators currently use onAuthenticationSuccess with an optional Response. That's mainly due to usecases whereby we want to redirect specific users etc. Commits ------- 1e95ac7 Make onAuthenticationSuccess Response optional
…Interface::onAuthenticationSuccess() (nicolas-grekas) This PR was merged into the 5.4 branch. Discussion ---------- [Security] Fix return type of AuthenticationSuccessHandlerInterface::onAuthenticationSuccess() | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Relates to #48288 Note that callers of this method are already null-aware. Commits ------- 7e35ba0 [Security] Fix return type of AuthenticationSuccessHandlerInterface::onAuthenticationSuccess()
Most authenticators currently use onAuthenticationSuccess with an optional Response. That's mainly due to usecases whereby we want to redirect specific users etc.