Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add require_csrf argument to add_jsonrpc_endpoint #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ztane
Copy link

@ztane ztane commented Aug 29, 2017

No description provided.

@ztane
Copy link
Author

ztane commented Aug 29, 2017

I didn't touch XML-RPC stuff, because I just need the JSON-RPC right now and ASAP.

Copy link
Member

@mmerickel mmerickel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks this looks fine but prior to release this needs the following updates:

  • Fix exception views to always have require_csrf=False.
  • Drop support for Pyramid < 1.7 in tox.ini and in documentation.
  • Add require_csrf to xmlrpc.

config.add_view(exception_view, route_name=name, context=Exception,
permission=NO_PERMISSION_REQUIRED)
permission=NO_PERMISSION_REQUIRED,
require_csrf=require_csrf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an exception view, it should always have require_csrf=False.

Also the JsonRpcError exception view in the includeme should also have require_csrf=False.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants