1👍
The issue has to do with naming headers on the Apache side. Django drops all headers that are named with an underscore ("_"). However, if you use a dash ("-"), django will accept the header and convert the dash to an underscore.
We changed this in the httpd-ssl.conf file:
RequestHeader set REMOTE_USER "%{SSL_CLIENT_S_DN_CN}s"
to:
RequestHeader set REMOTE-USER "%{SSL_CLIENT_S_DN_CN}s"
Now in our views.py we can call request.META and get all authentication info. Even with the middleware, the request makes it though with all data.
Source:stackexchange.com