Django OAuth Toolkit provides out of the box all the endpoints, data and logic needed to add OAuth2 capabilities to Django. The use of OAuthLib, makes it completely RFC-Compliant, but it’s modularity also allows you to have extra horsepower if you need it.
Secure your API infrastructure with OAuth2 in a few lines of code, set up the scopes you need and let DOT handle all the logic to ensure your website has RFC-Compliant authorization handling and the security your users deserve.
DOT can be as complex as your project requires it to be. It’s modular nature gives you a tailored implementation for each of your projects, ensuring it will always work as you need it to without anything more or less than the necessary.
DOT has almost 1000 commits, 1000 stars, 85 contributors and more than 300 forks. It’s used in more than 6000 projects and it’s under the permissive BSD License.
Install with pip
Add oauth2_provider to your INSTALLED_APPS.
If you need an OAuth2 provider you’ll want to add the following to your urls.py.