-
-
Notifications
You must be signed in to change notification settings - Fork 838
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
Support CSRF protection token of Symfony's form component #2132
Conversation
@GuilhemN I'd be really happy if you could have a look at this addition. |
b7e3636
to
d3a4bfc
Compare
d3a4bfc
to
467ef2d
Compare
I would also like to see a functional test for this https://github.com/nelmio/NelmioApiDocBundle/tree/master/Tests/Functional/Form 😄 |
f97e7c4
to
6eaf3fe
Compare
@DjordyKoert I have added a functional test, now. |
Thank you, could you please also write a test which shows the behaviour when using |
@DjordyKoert I have added some edge case handling and more tests. What do you think now? |
Thank you @stollr! |
This PR adds support of the CSRF protection token which is created by the Symfony form component if the
csrf_protection
option is enabled.As soon as this option is enabled a corresponding property will be added to the schema.
This PR addresses #2120.
There already was another PR (#411) some years ago, but it wasn't merged. I'd be happy if this could be accepted.