Groups | Blog | Home
all groups > asp.net security > september 2004 >

asp.net security : Forms Authentication won't redirect to login page


Max Figueredo via .NET 247
9/22/2004 12:45:22 PM
I'm trying to set basic form authentication on a webapp=2E I all=
access restricted to authenticated users=2E After changing the=
Web=2Econfig file in the app's root, I'm still not being=
redirected to the login page, I can freely access anything=2E Note=
that, although I have used forms auth=2E before, this is a new=
test server=2E

<?xml version=3D"1=2E0" encoding=3D"utf-8" ?>
<configuration>

<system=2Eweb>
<compilation defaultLanguage=3D"vb" debug=3D"true" />

<customErrors mode=3D"RemoteOnly" />

<authentication mode=3D"Forms">
<forms name=3D"=2EFORUM"
loginUrl=3D"login=2Easpx"
protection=3D"All"
timeout=3D"30"
path=3D"/"/>
</authentication>

<authorization>
<deny users=3D"?" />
</authorization>


<trace enabled=3D"false" requestLimit=3D"10" pageOutput=3D"false"=
traceMode=3D"SortByTime" localOnly=3D"true" />

<sessionState
mode=3D"InProc"
stateConnectionString=3D"tcpip=3D127=2E0=2E0=2E1:42424"
sqlConnectionString=3D"data=
source=3D127=2E0=2E0=2E1;Trusted_Connection=3Dyes"
cookieless=3D"false"
timeout=3D"20"
/>

<globalization requestEncoding=3D"utf-8"=
responseEncoding=3D"utf-8" />

</system=2Eweb>


<location path=3D"Secure/">
<system=2Eweb>
<authorization>
<deny users=3D"?" />
</authorization>
</system=2Eweb>
</location>

</configuration>

Things that I have tried already include:
- Reinstalling ASP=2Enet
- Creating a separate "Secure" subdirectory, with a separate=
web=2Econfig restricting acces=2E Same result, I don't get=
redirected to the login page=2E
- Accessing web app from different machines=2E

I have the feeling that it has something to do with server=
configuration / permissions, if someone could maybe point into=
the right direction=2E

Thanks !

Max


--------------------------------
From: Max Figueredo

-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)

dolandave2 NO[at]SPAM yahoo.com
9/26/2004 12:50:22 PM
Got me man, I'm seeing the same issue. I see I'm not alone though...

AddThis Social Bookmark Button