Ask a Question related to ASP.NET Security, Design and Development.
-
Max Figueredo via .NET 247 #1
Forms Authentication won't redirect to login page
I'm trying to set basic form authentication on a webapp. I allaccess restricted to authenticated users. After changing theWeb.config file in the app's root, I'm still not beingredirected to the login page, I can freely access anything. Notethat, although I have used forms auth. before, this is a newtest server.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="RemoteOnly" />
<authentication mode="Forms">
<forms name=".FORUM"
loginUrl="login.aspx"
protection="All"
timeout="30"
path="/"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false"traceMode="SortByTime" localOnly="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="datasource=127.0.0.1;Trusted_ Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization requestEncoding="utf-8"responseEncoding="utf-8" />
</system.web>
<location path="Secure/">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
Things that I have tried already include:
- Reinstalling ASP.net
- Creating a separate "Secure" subdirectory, with a separateweb.config restricting acces. Same result, I don't getredirected to the login page.
- Accessing web app from different machines.
I have the feeling that it has something to do with serverconfiguration / permissions, if someone could maybe point intothe right direction.
Thanks !
Max
--------------------------------
From: Max Figueredo
-----------------------
Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
<Id>vAhmKdekNU6YhIZeIJyLng==</Id>
Max Figueredo via .NET 247 Guest
-
Strange problem with Forms authentication: After successfull login, login page is still displayed
Hi there I have a quite strange problem with my ASP.NET-Application. The application has being deployed one year ago and worked fine till last... -
forms authentication returns 401 instead of going to login page
Hi, I have an app in the 1.1 framework that uses forms authentication . In the normal case, if the user requests a page and is not logged in,... -
Forms Authentication without Login Page
Is there any way to log someone in using Forms authentication *without* using RedirectFromLoginPage()? My reason for asking is that I'm trying to... -
Forms Authentication: login page in a separate web app
Hi, I would like to create a WebApp, say MySecurityProvider, that just contains a login page that knows how to authenticate a user. And I want... -
Authentication forms and SSL on the login page
Hi all, I'm tryiing to set up security for a ASP.NET web application in order to force all the users to go to a login page with an SSL connection.... -
aldousd666 #2
Re: Forms Authentication won't redirect to login page
Got me man, I'm seeing the same issue. I see I'm not alone though...
There must be something else with the IIS piece I'm missing...
aldousd666 Guest



Reply With Quote

