Django (django-allauth)
See the Applications overview for prerequisites, configuration endpoints, and available scopes.
Install django-allauth with OpenID Connect support:
pip install django-allauth[openid_connect]
Add the provider to your settings.py:
INSTALLED_APPS = [
# ...
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.openid_connect",
]
SOCIALACCOUNT_PROVIDERS = {
"openid_connect": {
"APPS": [
{
"provider_id": "vouch",
"name": "Vouch",
"client_id": os.environ["VOUCH_CLIENT_ID"],
"secret": os.environ["VOUCH_CLIENT_SECRET"],
"settings": {
"server_url": "https://us.vouch.sh",
},
},
],
},
}
Add the allauth URLs to your urls.py:
from django.urls import path, include
urlpatterns = [
# ...
path("accounts/", include("allauth.urls")),
]