Django-tastypie checking of csrf token in requests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Django-tastypie checking of csrf token in requests

Rene Zelaya
Hi everyone,

We have a REST API built using django-tastypie, which most of our users access through our web application. However, we do have users that make requests to the API programmatically (using the python 'requests' library, for example) and use an OAuth token to do so (we have already set up our Tastypie API to do this OAuth authentication).

How does Tastypie check for the csrf token, and does anybody have experience modifying the mechanism so that it does check it when users are in a session using the web application but does not require it if users are accessing programmatically AND have a valid OAuth token?

Thank you!

Rene

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a2bfde34-18e9-4df0-b50c-cfaea48b1d5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.