You can have a look at twod.wsgi. Check this example of Single-Sign-On with Trac and Django: https://bitbucket.org/Gustavo/weesgo/src/14fa15aadd15/weesgo/views.py
Mercurial can be run as a WSGI app, so it wouldn't be a problem, but Subversion would need to be proxied (e.g., using the proxy app from the Paste project), which may be a problem. There's an example on how to run non-Python web applications via WSGI here (I think I run Wordpress via Django, not sure): http://gustavonarea.net/files/talks/europython2010/all-materials.zip The big advantage is that you could control absolutely everything from Django views. HTH, - Gustavo. On Mar 28, 2:23 pm, pbienaim <[email protected]> wrote: > Hi. > > I have a website made with Django and I use the Django-Authentication. > The site is serve with Apache and mod_wsgi. > > On the same server, I have other web apps ( subversion, > mercurial, ...) and I would like to merge the authentication. The > purpose is that a user have to give credentials only one time, and is > authenticated on whatever the http server knows. > > I know that one solution is to use the Apache Basic authentication > everywhere ( and WSGIAuthUserScript to query my Django db) . But the > ugly pop-up does not satisfy me. > > Indeed I would like to use my pretty Django login form and to "push" > the authentication in Apache. > > Is there any way to do that ? > > My idea is to use the Cookie created by Django. With that cookie, it > is easy to retrieve the current user in the Django db. But I can't > manage to call a wsgi script doing that, because this is neither a > basic nor a digest apache authentication. > > Thanks for your suggestions. > > Best regard ! -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
