There are several functions here that could use an async version:
* `authenticate`
* `login`
* `logout`
* `get_user`
* `update_session_auth_hash`
I'd like to propose implementing them by just wrapping the synchronous
versions (for now). Later on we can asyncify the internals down to the
ORM. I've discussed doing this as part of a larger proposal at length
here: https://forum.djangoproject.com/t/asyncifying-django-contrib-auth-
and-signals-and-maybe-sessions/18770
--
Ticket URL: <https://code.djangoproject.com/ticket/34391>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Carlton Gibson (added)
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:1>
* owner: nobody => Jon Janzen
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16636 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:3>
* needs_docs: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:4>
* needs_docs: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:5>
Comment (by GitHub <noreply@…>):
In [changeset:"650ce967825aa192222391bfe3003c8d97e6f1d0" 650ce967]:
{{{
#!CommitTicketReference repository=""
revision="650ce967825aa192222391bfe3003c8d97e6f1d0"
Refs #34391 -- Updated asgiref dependency for 5.0 release series.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"5e98959d9242c57a55c65847758781f82d386fa4" 5e98959]:
{{{
#!CommitTicketReference repository=""
revision="5e98959d9242c57a55c65847758781f82d386fa4"
Fixed #34391 -- Added async-compatible interface to auth functions and
related methods test clients.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34391#comment:8>