Skip to content
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

Add skip_validation decorator to bypass CSRF validation programatically #89

Merged
merged 3 commits into from Mar 20, 2019

Conversation

Projects
None yet
2 participants
@bjudson
Copy link
Contributor

commented Mar 19, 2019

Note: this is basically the same as #84, but has been updated with the test fix merged in #88.

This allows controlling validation() calls without applying @exempt decorator to each endpoint. Useful when performing widespread manual validation (eg through a custom view decorator or before_request hook).

Happy to add documentation if this makes sense to merge.

We've been using this in production via our fork, but would like to get back on the published package if possible.

bjudson added some commits Jan 18, 2019

Add skip_validation decorator to bypass CSRF validation programatically
This allows controlling validation() calls without applying @exempt decorator to each endpoint. Useful when performing widespread manual validation (eg through a custom view decorator or before_request hook).
Merge pull request #1 from maxcountryman/master
Merge upstream changes

@maxcountryman maxcountryman merged commit 4062bee into maxcountryman:master Mar 20, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.