iHela Provider is a simple Django app to enable oAuth2 authentication with django-allauth.
-
Install django-allauth
pip install django-allauth
and following the install guide -
Add "ihelaprovider" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... "allauth", "allauth.account", "allauth.socialaccount", "ihelaprovider", ]
-
Include the polls URLconf in your project urls.py like this::
path("oAuth2/", include("ihelaprovider.urls")),
-
Run
python manage.py migrate
to create the polls models. -
Start the development server and visit http://127.0.0.1:8000/admin/ to add the iHela provider with the application credentials given (you'll need the Admin app enabled).
Visit iHela and django-allauth.