Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[HttpFoundation]#[IsSignatureValid]
attribute#60395
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:7.4
Are you sure you want to change the base?
Conversation
4730169
toc72ef83
Comparesantysisi commentedMay 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/EventListener/IsSignatureValidAttributeListener.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
This is looking great@santysisi! I'll give it a more thorough review after 7.3 is released. |
c72ef83
to85320cf
CompareWe could also consider adding an extra argument to the attribute called |
85320cf
toc000b69
Compare
ready these 2 changes 🚀 |
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.
This looks really great, nice work@santysisi!
Uh oh!
There was an error while loading.Please reload this page.
✨ New Feature:
#[IsSignatureValid]
AttributeThis attribute simplifies signature verification by applying it declaratively at the controller level.
✅ Usage Examples
🔥 Advanced Usage (with#60102)
When throw: true is passed, exceptions are thrown instead of returning responses directly: