[Mono-list] Mono webservice and basic authentication

Adr!an Serafin abusiek at gmail.com
Tue Jun 14 04:47:39 EDT 2011

I'm trying to add basic authenthication to my webservice. I followed steps
from here (http://www.mono-project.com/ASP.NET_Modules) and ended up with
this in my web.config file:

          <add name="BasicAuthenticationModule"
         type="Mono.Http.Modules.BasicAuthenticationModule, Mono.Http,
Version=, PublicKeyToken=0738eb9f132ed756"/>
          <add key="Authentication" value="Basic" />
          <add key="Basic.Users"
value="/home/vadmin/Projects/TestService/TestService/users.xml" />
          <add key="Basic.Realm" value="My Realm" />

My users.xml looks like this:

    <?xml version="1.0" encoding="utf-8"?>
    <user name="adrian" password="adrian">
        <role name="user" />

When I run xsp2 and then go to


user and password prompt appears. But after I enter correct user and
password it asks me again and again. I'm pretty sure that path to users.xml
file is correct, tried running xsp2 with --verbose options hoping for some
error messages with no luck.

Can anyone help me debug this situation? (I'm using mono 2.4.3)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110614/e8a558a6/attachment.html 

More information about the Mono-list mailing list