RE: Getting forms auth challenge
From: Jim Cheshire [MSFT] (jamesche_at_online.microsoft.com)
Date: 07/28/04
- Next message: [MSFT]: "RE: using System.Net.NetworkCredentials on windows NT"
- Previous message: Jim Cheshire [MSFT]: "RE: Problems accessing COM+ from ASP.NET application"
- In reply to: MarkMurphy: "Getting forms auth challenge"
- Next in thread: MarkMurphy: "Re: Getting forms auth challenge"
- Reply: MarkMurphy: "Re: Getting forms auth challenge"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 Jul 2004 21:35:15 GMT
Mark,
You are allowing everyone to the site. Therefore, no one needs to
authenticate. You need to change your <authorization> section as follows:
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
jamesche@online.microsoft.com
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
>From: murphy@murphysw.com (MarkMurphy)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>Subject: Getting forms auth challenge
>Date: 28 Jul 2004 12:04:34 -0700
>Organization: http://groups.google.com
>Lines: 32
>Message-ID: <e061eb57.0407281104.7cab54ba@posting.google.com>
>NNTP-Posting-Host: 144.223.23.86
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1091041475 8883 127.0.0.1 (28 Jul 2004
19:04:35 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Wed, 28 Jul 2004 19:04:35 +0000 (UTC)
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!p
ostnews2.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.security:10952
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>I'm implementing forms authentication on a site and can't get the
>redirection to the login page to work happen. It is behaving as
>though still doing windows authentication.
>
>In web.config:
>
> <authentication mode="Forms">
> <forms loginUrl="login.aspx" name=".ASPXFORMSAUTH"
>protection="All"/>
> </authentication>
>
> <!-- AUTHORIZATION
> This section sets the authorization policies of the
>application. You can allow or deny access
> to application resources by user or role. Wildcards: "*"
>mean everyone, "?" means anonymous
> (unauthenticated) users.
> -->
>
> <authorization>
> <allow users="*" /> <!-- Allow all users -->
> <!-- <allow users="[comma separated list of users]"
> roles="[comma separated list of roles]"/>
> <deny users="[comma separated list of users]"
> roles="[comma separated list of roles]"/>
> -->
> </authorization>
>
>
>Am I missing something?
>
>Thanks in advance, Mark
>
- Next message: [MSFT]: "RE: using System.Net.NetworkCredentials on windows NT"
- Previous message: Jim Cheshire [MSFT]: "RE: Problems accessing COM+ from ASP.NET application"
- In reply to: MarkMurphy: "Getting forms auth challenge"
- Next in thread: MarkMurphy: "Re: Getting forms auth challenge"
- Reply: MarkMurphy: "Re: Getting forms auth challenge"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|