Groups | Blog | Home
all groups > asp.net security > november 2007 >

asp.net security : forms authentication brings up dialog


Maximilian
11/1/2007 11:19:00 AM
I have a very simple site with forms authentication. Everything works
allright when running locally when deploying it on the real server it doesnt.
The thing is I get a dialog prompting me for credentials rather than
redirected me to Login.aspx as it should (and does locally). Why?
And about this cred-dialog. I guess it could be nice to use it sometimes,
but can it be used with custom authentication? I mean can a validate the
input from this dialog in some customized way? or against users specified in
the Web.config file? Or is it only for Windows-authentication?

~/Web.config:

<authentication mode="Forms">
<forms loginUrl="admin/Login.aspx">
<credentials passwordFormat="Clear">
<user name="test" password="test" />
</credentials>
</forms>
</authentication>

~/admin/Web.config:

<system.web>
<authorization>
<deny users="?" />
</authorization>
Dave Bush
11/1/2007 3:11:15 PM
I suspect that this is because you don't have anonymous access turned on
for the site in IIS.

-----Original Message-----
From: Maximilian [mailto:Maximilian@discussions.microsoft.com]
Posted At: Thursday, November 01, 2007 2:19 PM
Posted To: microsoft.public.dotnet.framework.aspnet.security
Conversation: forms authentication brings up dialog
Subject: forms authentication brings up dialog

I have a very simple site with forms authentication. Everything works
allright when running locally when deploying it on the real server it
doesnt.
The thing is I get a dialog prompting me for credentials rather than
redirected me to Login.aspx as it should (and does locally). Why?
And about this cred-dialog. I guess it could be nice to use it sometimes,
but can it be used with custom authentication? I mean can a validate the
input from this dialog in some customized way? or against users specified
in
the Web.config file? Or is it only for Windows-authentication?

~/Web.config:

<authentication mode="Forms">
<forms loginUrl="admin/Login.aspx">
<credentials passwordFormat="Clear">
<user name="test" password="test" />
</credentials>
</forms>
</authentication>

~/admin/Web.config:

<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
AddThis Social Bookmark Button