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

Implement rudimentary support for async auth #735

Merged
merged 2 commits into from
May 27, 2023

Conversation

kjagiello
Copy link
Contributor

This PR introduces initial support for asynchronous authentication by allowing users to pass in async callables through the auth kwarg. The built-in authentication classes provided by this project remain synchronous-only.

Doesn't fully solve #44, but it might be a good first step towards full async auth support.

@kjagiello kjagiello marked this pull request as ready for review April 7, 2023 22:00
@kjagiello
Copy link
Contributor Author

I've added some missing tests for CSRF and authentication errors. Note that I did not add any tests for CSRF exemption for async views, since that's not yet supported in Django.

@vitalik vitalik merged commit 6a35d95 into vitalik:master May 27, 2023
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.

2 participants