Re: Exclude pages from authentication!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

you can do that with <location> (path can either be single page or a
directory). Note that <location> element is placed right under
<configuration> element, not under the default <system.web> in standard
web.config

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

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Adam J Knight" <adam.jknight@xxxxxxxxxxxxxxx> wrote in message
news:OKl20q7LGHA.3732@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I have an app that mostly requires authentication.

However there are a couple of pages that don't require authentication..

What do i need in my web.config, to specify these pages don't require
authentication..
thus the user is not redirected to my default login url..when they
('pages') are requested.

Cheers,
Adam



.



Relevant Pages

  • Re: Authentication login screen appears on both frames of the framset
    ... If you're using forms authentication when a user is not authorized to see a ... page they are automatically redirected to the login page. ... Since both of your frames are checking if the user is authorized they each ... > I am using the authentication and authorization mechanism, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: authorization problems
    ... 401 is status code reserved in RFC for failed server security negotiations. ... your IE would pop up login screen asking for username and password. ... > When I use Windows authentication, response.StateCode can get 401, So I ... >> authorization caused problems. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: asp password
    ... If you use Forms authentication it will automatically redirect users to a ... login page you specify if they are not logged in. ... Web.Config or you could put them in an xml file or a database. ... This section sets the authorization policies of the application. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • asp.net vulnerability
    ... From: Windows NTBugtraq Mailing List ... More details on ASP.NET vulnerability ... There has been some confusion with the ASP.NET forms authentication issue ... authorization issue, not an authentication issue. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: application pool custom identity
    ... Kerberos becomes a possibility when the web server is in a Domain, ... The problem happens when the browser/server selects Kerberos authentication, ... LocalSystem credentials will work for Kerberos; custom AppPool Identity ... Authorization. ...
    (microsoft.public.inetserver.iis)