diff --git a/README.md b/README.md index 433d23c4b1807a762c336b2b6f07fbfd9e5206f7..5330c9c18c6c128461a18d73d900dc94da274d47 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,33 @@ docker compose -f docker-compose.prod.yml exec web python manage.py collectstati The app should now be running on `localhost:1337` +## Adding Social Login +Authentication is now provided via django-allauth, so refer to their documentation [here](https://docs.allauth.org/en/latest/installation/quickstart.html). + +For OpenID Connect, add the following to your local_settings.py file: +```python +INSTALLED_APPS += [ + 'allauth.socialaccount.providers.openid_connect', +] + +SOCIALACCOUNT_PROVIDERS = { + "openid_connect": { + "EMAIL_AUTHENTICATION": True, # Only add this line if you want existing accounts to be linked by email + "APPS": [ + { + "provider_id": "my-server", + "name": "My Login Server", + "client_id": "your.service.id", + "secret": "your.service.secret", + "settings": { + "server_url": "https://my.server.example.com", + } + } + ] + } +} + +``` ## Tech Stack