-
Notifications
You must be signed in to change notification settings - Fork 55
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
Implement CSRF protection for Plone 5 #590
Comments
@hvelarde @rodfersou the authenticator is only necessary in Plone 5. See: In Plone 4 with plone4.csrffixes and Plone 4 without plone4.csrffixes it's not necessary. I removed the authenticator and the tests passed with plone4.csrffixes. As the cc is not working in Plone 5 still do not think it should be fixed now. I suggest close the PR #594 and change the title of this issue to be fix in Plone 5. Do you agree? |
I have no opinion on this at this time. |
Guys, any opinion on this matter? Specially about #590 (comment) |
@idgserpro digging into the threads I found what you are talking about.. protect.js automatically add the token for ajax calls. But my question is.. what is the difference beetween the I think we should wait for the decicion of this issue before continue with this work. About your experiment removing the authentication and keeping the tests that didn't fail, that's interesting, it should fail.. |
Sorry, no time to form an opinion on this one. Glad you guys are working on it. Sent from my Sony Xperia™ smartphone ---- Rodrigo Ferreira de Souza wrote ----
|
@rodfersou From an end user perspective, none. You can see in this commit that if From an implementation perspective, this means less code and being less error prone, since all AJAX calls will have the token in the request instead of manually adding it to your javascript. The way it's done now, if you add another call to your javascript you need to remember to add, again, The experiment don't fail in Plone 4.3 because of plone4.csrffixes, this package adds the |
so we can add the authenticator based on the Plone version used, right? we can leave this pending until we can make more advances on Plone 5 compatibility. |
@hvelarde right. I'll change the title of this issue to make this clearer. |
protect.js was added in plone.protect: |
In 657f1e6 @alecpm started some work to implement CSRF protection into the package; we need to review it and finish the work.
The text was updated successfully, but these errors were encountered: