Re: Page level forms Authentication
From: Teemu Keiski (joteke_at_aspalliance.com)
Date: 07/01/03
- Previous message: dave: "Page level forms Authentication"
- In reply to: dave: "Page level forms Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 1 Jul 2003 23:26:36 +0300
By setting authentication normally as you would and then the alternative
permissions by using <location> tag.
Something like (irrelevant part snipped out):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
...
<!--
<authentication> tag as it would normally be with Forms auth.
Removed from this example to keep it simple
//-->
<authorization>
<!-- By default pages are denied for unauthenticated users //-->
<deny users="?" />
</authorization>
...
</system.web>
<!--
All users can access page1.aspx
//-->
<location path="page1.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<!--
All users can access page2.aspx
//-->
<location path="page2.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
-- Teemu Keiski MCP, Designer/Developer Mansoft tietotekniikka Oy http://www.mansoft.fi ASP.NET Forums Moderator, www.asp.net AspAlliance Columnist, www.aspalliance.com Email: joteke@aspalliance.com "dave" <dy@onlinelg.com> wrote in message news:019301c34008$129c3910$a501280a@phx.gbl... > What would the web.config file look like if i need to > perform the following? > > I have 3 pages in the root directory that need to have > forms authentication. I also have 3 more in the root > directory that must be available to everyone. > > I cannot split up into directories (this would be easier) > but the means of access must be at the root level for > some other reasons. > > thank you very much in advance. > dave
- Previous message: dave: "Page level forms Authentication"
- In reply to: dave: "Page level forms Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|