[Mono-list] apache and mono some kind of authentication

Peter Hagen peter at wingsofdeath.nu
Tue Oct 21 05:31:19 EDT 2008


Hi

thanx for the reply Gonzalo, but I think what I need is a bit different
from the iHttpModule. I have a website to authenticate on. On the same
webserver, there is also a apache proxy:

        ProxyRequests Off
        ProxyPreserveHost Off
        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>
        ProxyPass / http://192.168.0.101/
        ProxyPassReverse / http://192.168.0.101/

what I'm looking for, is a way to let mono authenticate the request, and
if ok, let apache do the forwarding. I just can't seem to find a good
proxy module in c#, and my own written one just doesn't do the job
correctly.

Anyone any idea how to get this done?

cheers

Peter

On Mon, 2008-10-20 at 15:13 -0400, Gonzalo Paniagua Javier wrote:
> On Mon, 2008-10-20 at 17:29 +0200, Peter Hagen wrote:
> > Hi all
> > 
> > does anybody know if its possible to use a mono executable / module / or
> > something to tell apache if he is allowed to pass or access a certain
> > file? 
> > 
> > For example, someone authenticates on my website (mono), which is behind
> > a apache proxy. Now I want to access another part of the network through
> > the same apache server, which should check if i have logged into that
> > other website (same domain, so cookies could be used). This module/exec.
> > or something should only return true/false i guess. 
> > 
> > does anyone have a solution for this? I dont want to use the basic
> > authentication crap and I really want to stick to mono
> 
> You can certainly achieve this by creating your own IHttpModule
> (http://www.15seconds.com/issue/020417.htm)
> 
> 
> -Gonzalo
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list