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 ?