#26623: Customizing environment variable for RemoteUserMiddleware requires 
subclass
------------------------------+--------------------------------------
     Reporter:  adelton       |                    Owner:  nobody
         Type:  New feature   |                   Status:  new
    Component:  contrib.auth  |                  Version:  1.9
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  1             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------

Comment (by aaugustin):

 I'm not sure what's wrong with:

 {{{
 class CustomRemoteUserMiddleware(RemoteUserMiddleware):
     header = os.environ['DJANGO_REMOTE_USER_VAR']
 }}}

 Features are usually configured with settings in Django. In "devops
 environments" these settings are initialized from environment variables.

 I'm -0 on adding a setting to tackle this specific use case and -1 on
 using a environment variable that won't be visible e.g. in `diffsettings`.

--
Ticket URL: <https://code.djangoproject.com/ticket/26623#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.f41a8c8a19fa1049271e3457d27b7eba%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to