How to Integrate OAuth 2 Into Your Django/DRF Back-end Without Going Insane

This post was originally published here

So you've implemented user authentication. Now, you want to allow your users to log in with Twitter, Facebook or Google. No problem. You're only a few lines of code away from doing so.

But while there are hundreds of OAuth 2 packages that pip knows, only a few actually do what they’re supposed to do.

In this article, Toptal Software Engineer Peter Goodspeed-Niklaus explains how to integrate OAuth 2 into your Django or Django Rest Framework using Python Social Auth.

Related Posts

Test Driven Development of a Django RESTful API This post walks through the process of developing a CRUD-based RESTful API with Django and Django REST Framework, which is used for rapidly building R...
Getting Started with Django Channels In this tutorial, we will use Django Channels to create a real-time application that updates a list of users as they log in and out. With Web...
Token-Based Authentication with Flask This tutorial takes a test-first approach to implementing token-based authentication in a Flask app using JSON Web Tokens (JWTs). Objectives ...
How to present your data science portfolio on Github This is the fifth and final post in a series of posts on how to build a Data Science Portfolio.In the previous posts in our portfolio series, we talke...

Leave a Reply

Be the First to Comment!

Notify of