-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Improve LogoutUrlGenerator
exception message
#48212
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] Improve LogoutUrlGenerator
exception message
#48212
Conversation
Hey! Thanks for your PR. You are targeting branch "6.2" but it seems your PR description refers to branch "6.3". Cheers! Carsonbot |
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.
Thanks for the PR!
As we now split the reasons, we can give even more hints in the old and new error messages. I posted some sample messages, feel free to improve them 🙂
src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
Outdated
Show resolved
Hide resolved
I'm ok with these new messages @wouterj, PR updated |
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 it on 6.2 as a minor enhancement.
LogoutUrlGenerator
exception message
src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
Outdated
Show resolved
Hide resolved
Thank you @alamirault. |
…e (alamirault) This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Security] Improve `LogoutUrlGenerator` exception message | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #45913 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> With this PR, exception message is different when request is under firewall or not, as suggested in #45913 (comment) Commits ------- 59187f2 [Security] Improve `LogoutUrlGenerator` exception message
a0eb08f
to
59187f2
Compare
With this PR, exception message is different when request is under firewall or not, as suggested in #45913 (comment)