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

Can't create a stateless API since allauth uses sessions everywhere #594

Open
oabuhamdan opened this issue Feb 23, 2024 · 1 comment
Open

Comments

@oabuhamdan
Copy link

Hi,

I am trying to create a stateless API but I am forced to use sessions since allauth requires session to work properly.
I was able to not use sessions by using my own ACCOUNT_ADAPTER. But, the AccountMiddleware forces using session and it's unavoidable.

This has to be fixed.

@oabuhamdan oabuhamdan changed the title Can't create a stateless API since allauth uses sessions everwhere Can't create a stateless API since allauth uses sessions everywhere Feb 23, 2024
@Aniket-Singla
Copy link
Contributor

The issue exists because of dependency on django-allauth for social authentications. As per an issue recorded on django-allauth there are no plans of moving away from session auth.
See pennersr/django-allauth#3805 (comment) for more details.

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

No branches or pull requests

2 participants