I have a Django application which I now want to integrate it with Kibana. 
So when authenticated users click on a link, they will be directed to 
Kibana. But this option should not be available to anonymous users.


My stack is Psql + Django + mod_wsgi + Apache. The solution I came up with 
was restricting access to Kibana via Apache, and authenticating users in 
Django before giving them access. This HowTo 
<https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/apache-auth/> in 
Django website says how you can authenticate against Django from Apache, 
but that one uses Basic authentication. When I use this approach, even for 
users who already have an active session in my Django app, they will be 
asked to enter their username/password in a browser dialog!


I was hoping the authentication to happen using the current Django active 
sessions. I believe for that I need to use AuthType form and mod_session, 
instead of AuthType Basic. Is this correct? If yes, it seems mod_wsgi does 
not support mod_session yet (as discussed here 
<https://github.com/GrahamDumpleton/mod_wsgi/pull/41>). what would be the 
alternative then?


-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to