I have so far tried this problem. Working on OAuthlib was a pain (Roland lib is also very hard to understand), so I decided to start from scratch.
django-oidc-provider can help you provide out of the box all the endpoints, data, and logic needed to add OpenID Connect features to your Django projects. Full support for Python 3 and 2. Also the latest versions of django.
View on GitHub: https://github.com/juanifioren/django-oidc-provider
Anything you want to know, ask.
Hey.
-Ignacio
juanifioren
source share