Skip to content

Modify django-allauth to not use SocialApp#4046

Open
functionzz wants to merge 1 commit intomozilla:mainfrom
functionzz:fix_update_auth_providers
Open

Modify django-allauth to not use SocialApp#4046
functionzz wants to merge 1 commit intomozilla:mainfrom
functionzz:fix_update_auth_providers

Conversation

@functionzz
Copy link
Copy Markdown
Collaborator

@functionzz functionzz commented Mar 27, 2026

Summary

In the most recent bump for django-allauth #3867, we realized that we disregarded the python manage.py ./update_auth_providers command, of which when run now, causes issues as Keycloak as a seperate provider no longer exists.

Recently, a new revelation has emerged: in the new django-allauth, we don't need to use the SocialApp model to keep track of Social account providers any longer. Within the documentation, it is clear that when picking either the SOCIALACCOUNT_PROVIDER settings method or SocialApp model method, we should pick one, lest there be a MultipleObjectsReturned exception for duplicate providers.

I selected the SOCIALACCOUNT_PROVIDER settings method because it is recommended, does not require the database at all, is better documented and eliminates the need for update_auth_providers.

Fixes #4013.

Additional Information

Upon this PR being cleared and merged into main, please make sure to delete the Social applications & Social application tokens db table, as they are no longer necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running ./manage.py update_auth_providers fails

1 participant