Saturday, June 27, 2015

How to protect a REST API view with token authentication using django-rest-framework-social-oauth2?

I have installed and setup the django-rest-framework-social-oauth2 package.  Now I need to protect my REST API views with the appropriate token authentication.  Do I follow the method at:
http://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication or is another method appropriate?

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/c5d4567f-878b-4372-b64e-1d33752bc045%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment