#36300: request.META["HTTP_" + self.header] in RemoteUserMiddleware __acall__ 
does
not sound correct
-------------------------------+--------------------------------------
     Reporter:  Jan Pazdziora  |                    Owner:  (none)
         Type:  Uncategorized  |                   Status:  closed
    Component:  contrib.auth   |                  Version:  5.2
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Comment (by Carlton Gibson):

 I think the difference here is that WSGI servers generally set
 `REMOTE_USER` in the environment, where the ASGI scope is parsed as
 headers (so get the `HTTP_` prefix).

 `needsinfo`: Yes. A clearer demonstration of why Django is at fault would
 be needed here.

 Unless `django-identity-external ` is using the new `__acall__` methods,
 it's not clear why it should be affected. (I didn't see a tracking issue
 on its repo.) Perhaps you're using it with an async app, and you're
 hitting the new pathway? Maybe the
 [https://docs.djangoproject.com/en/5.1/howto/auth-remote-user/#id1
 `CustomHeaderRemoteUserMiddleware` example] in the docs would be what you
 need, as a workaround?
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36300#comment:2>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019601d01e09-efb78cb2-9a1d-44d1-af3d-4589dbe4ee7a-000000%40eu-central-1.amazonses.com.

Reply via email to