Re: Forms Authentication - Supress displaying the login page for certain web pages



Thanks for Dominick's informative suggestion.

Hi Felix,

As Dominick has suggested, you can use the <location> element to grant
specific <authorization> setting for individual pages or directories in the
ASP.NET web application.

#How to: Configure Specific Directories Using Location Settings
http://msdn2.microsoft.com/en-us/library/ms178692.aspx

For example, the following configuration sections customize the application
to allow anomymous(unauthenticated) user to access the "ContactUS.aspx"
page and the "PublicUsers" sub directory under the application root dir:

==============================

<configuration >

<location path="ContactUS.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

<location path="PublicUsers">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
....................
==============================

If there is anything unclear or any other information you need, please feel
free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial

response from the community or a Microsoft Support Engineer within 1
business day is

acceptable. Please note that each follow up response may take approximately
2 business days

as the support professional working with you may need further investigation
to reach the

most efficient resolution. The offering is not appropriate for situations
that require

urgent, real-time or phone-based interactions or complex project analysis
and dump analysis

issues. Issues of this nature are best handled working with a dedicated
Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Securing a single aspx page
    ... forms authentication by default will allow everyone access ... authorization setting: ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Securing a single aspx page
    ... forms authentication by default will allow everyone access ... authorization setting: ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: strange security role issue
    ... As for the authorization, here is the setting, for a section that should not be viewable by a new user: ... But this seems only to reproduce the functionality that security trimming provides, and is not required, correct? ... Microsoft MSDN Online Support Lead ... from the community or a Microsoft Support ...
    (microsoft.public.vsnet.general)
  • Re: OnLoggedIn/OnLoggedOut - not session?
    ... Microsoft MSDN Online Support Lead ... response from the community or a Microsoft Support Engineer within 1 ... as the support professional working with you may need further investigation ... real-time or phone-based interactions or complex project analysis ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: VS2005 SP1 WebApps Question
    ... I think the warning message in the SP also applies to the Windows 2000 ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... complex project analysis and dump analysis issues. ...
    (microsoft.public.vsnet.general)