Preferred way of adding social authorization to a Django / REST app?

114 views
Skip to first unread message

Daniel Grace

unread,
Jun 18, 2015, 2:00:14 PM6/18/15
to django...@googlegroups.com
What is the preferred way of adding social authorization to a Django / REST app?

I see that there are at least two packages: django-rest-framework-social-oauth2 (see https://pypi.python.org/pypi/django-rest-framework-social-oauth2/0.0.4) and django-rest-auth (see http://django-rest-auth.readthedocs.org/en/latest/installation.html).  django-rest-framework-social-oauth2 seems to have a lot of dependencies.  While the install page for django-rest-auth says that you should install rest_framework and rest_framework.authtoken apps, both of which give an error if you try to install them with pip:

Downloading/unpacking rest-framework.authtoken
  Could not find any downloads that satisfy the requirement rest-framework.authtoken
Cleaning up...
No distributions at all found for rest-framework.authtoken
Storing debug log for failure in C:\Users\Daniel\pip\pip.log

Or is there a better alternative to these two packages for Django / REST / social authorization apps?

Vijay Khemlani

unread,
Jun 18, 2015, 2:40:09 PM6/18/15
to django...@googlegroups.com
the package is called "rest-framework" and it includes the authtoken app


INSTALLED_APPS = (
    ...
    'rest_framework.authtoken'
)

--
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...@googlegroups.com.
To post to this group, send email to django...@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/8637f6fa-7241-4866-9a52-311b36f5d8be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

aRkadeFR

unread,
Jun 19, 2015, 3:33:07 AM6/19/15
to django...@googlegroups.com
I like JWT authentication coupled with AngularJS:
https://github.com/GetBlimp/django-rest-framework-jwt
--
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...@googlegroups.com.
To post to this group, send email to django...@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/8637f6fa-7241-4866-9a52-311b36f5d8be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
aRkadeFR
Reply all
Reply to author
Forward
0 new messages