Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable oauth login with django-allauth but a custom provider

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 ?

like image 428
Brachamul Avatar asked Jun 07 '16 22:06

Brachamul


1 Answers

This is a interesting article that explains this topic:

  • https://raphaelyancey.fr/en/2018/05/28/setting-up-django-oauth2-server-client.html
like image 131
Andrés M. Jiménez Avatar answered Sep 27 '22 23:09

Andrés M. Jiménez