#34391: Add async interface to contrib.auth
----------------------------------------+------------------------
               Reporter:  Jon Janzen    |          Owner:  nobody
                   Type:  New feature   |         Status:  new
              Component:  contrib.auth  |        Version:  dev
               Severity:  Normal        |       Keywords:  async
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+------------------------
 This module currently doesn't offer a way to work with it directly
 asynchronously. Per the work in #31920 the middleware supports it, but if
 you need to directly call any of the functions you need to manually wrap
 them with the help of `sync_to_async`.

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070186bebf4f81-4cf4d23a-c9d0-4b0a-a517-e8f4a8ab95de-000000%40eu-central-1.amazonses.com.

Reply via email to