I have built an oauth provider using django-oauth-toolkit.
I would now like to allow users of my client application to log in through this provider.
My understanding is that django-allauth is the ideal tool for this.
I see that django-allauth has a special folder for each provider, and in this folder there is a special files called provider.py. For example, this is the folder for the github provider.
Should I be creating something similar to this folder, specially for my custom provider ? Or is there an easier/better way to do this ?
Based on what the documentation says, it discovers new providers based on
INSTALLED_APPS. So you will need a Django app that has the same structure yes and includes aproviders.py. So you should be able to use a new app or an existing one.This is from the docs:
Also, a note about the contents of the
providers.pyfile: