Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless: creating and logging in with local accounts still works with SOCIALACCOUNT_ONLY = True in settings.py #3919

Open
robin24 opened this issue Jun 25, 2024 · 1 comment
Labels

Comments

@robin24
Copy link

robin24 commented Jun 25, 2024

In my Django projects I'd like to limit account creation and signups to social accounts. Thus, I have
SOCIALACCOUNT_ONLY = True
set in my settings.py file, which according to the docs disables all functionality related to local accounts.
However, even with this set I am still able to create local accounts via the headless /auth/signup endpoint, and can log in with that local account using the respective endpoint as well.

I hope I'm not overlooking something major here, but my understanding is that, if SOCIALACCOUNT_ONLY = True disables all functionality regarding local accounts, this should apply to headless API functionality as well.

As an alternative to disabling local accounts this way, I suppose I would have to only enable a subset of the allauth.headless.urls, but to me at least it would seem more straightforward if the config setting applied here as well.

Any clarification on this would be much appreciated, thanks!

@pennersr
Copy link
Owner

This is actually a bug that needs to be fixed.

@pennersr pennersr added the TODO label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants