Reputation: 1332
I'm building REST APIs for a platform where we have iOS, Android and Web apps as clients. Users can register normally via the Django APIs, so authenticate using their credentials or they can sign in to their Facebook or Twitter account using OAuth.
I started using django-rest-framework-social-oauth2
to speed up the development of the social login part.
The part that I don't understand is related to the URL callback (or URL redirect) pointing back to the server-side Django app.
What URL callback should I provide? Is there already an implemented view out-of-the-box from django-rest-framework-social-oauth2
?
Also, is there a better package available for DRF to be used for the authentication of big projects?
Upvotes: 1
Views: 3111
Reputation: 1056
The new way of doing that is by using python-social-auth, as django-social-auth was deprecated in favor of python-social-auth and now supports other frameworks than Django such as Flask, Pyramid, Web.py and Tornado.
It also supports other major auth providers such as Microsoft, Google, Twitter, Amazon, GitHub and many more.
django-all-access is a reusable application for user registration and authentication from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook.
The goal of this project is to make it easy to create your own workflows for authenticating with these remote APIs. django-all-access will provide the simple views with sane defaults along with hooks to override the default behavior.
There is a simple demo application running on at http://allaccess-mlavin.dotcloud.com/ The full source of this application is include in the repository.
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
Django Social Auth is an easy way to setup social authentication/authorization mechanism for Django projects.
Crafted using base code from django-twitter-oauth and django-openid-auth, it implements a common interface to define new authentication providers from third parties.
This is a application to enable authentication via various third party sites. In particular it allows logging in via
The oauth2app module helps Django site operators provide an OAuth 2.0 interface. The module is registered as an application.
This is a forked version of David Larlet's django-oauth.
One very important difference is that this version requires that you be running a real cache behind Django's caching framework.
A django application providing infrastructure for consuming OAuth services. It is not for providing OAuth services.
Also useful:
Upvotes: 3