What's going on here? We're handling a few different cases: Your front-end application will pass up the following data in a request: With that out of the way, you just need to do a simple pip install python-social-auth and follow the Django configuration instructions. I'm assuming that you already have a Django project set up using DRF and some standard variant on a Django User model. If you are using Tastypie instead of DRF, see our complemetary piece: Integrating Django, Tastypie & Python Social Auth. # settings.This post is to help you set up Django REST Framework with Python Social Auth the goal here is to allow users to sign up and sign in to your app using Facebook, Twitter, etc., using API endpoints that you manage with Django REST Framework. You can have several ways of authenticating users for the same API service, each used for a different type of client. All other checks (like permissions, throttling, etc) are done afterwards.
0 Comments
Leave a Reply. |