Re: Forms Authentication: <location> authorization not bypasssing login page.
From: Joe (J_no_spam_at__no_spam_Fishinbrain.com)
Date: 07/29/05
- Next message: martymcdonald_at_comcast.net: "Re: Losing custom identity"
- Previous message: Joe: "Forms authentication not working right"
- In reply to: M Gallagher: "Forms Authentication: <location> authorization not bypasssing login page."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 29 Jul 2005 15:37:35 -0400
Here's a location tag the way I have it setup to avoid the authentication:
<location path="quickpage.aspx">
<system.web>
<compilation defaultLanguage="c#" debug="true" />
<customErrors mode="Off" />
<authorization>
<allow users ="*"/>
</authorization>
</system.web>
</location>
"M Gallagher" <mgallagher@arraysystems.com> wrote in message
news:G4AEe.15971$bG4.15252@fe06.lga...
>I am trying to configure my forms authentication so a certain page is not
>subject to a redirect to the login page. This seems like it should be a
>simple thing to do with a <location> tag, but its just not working.
>Requets to the page (public.aspx) specified in the <location> tag are still
>being redirected to the login page. The login page is in a subdirectory of
>the application root where web.config resides. Here is the code from the
>web.config file. Anyone know what Im doing wrong and why I cant grant
>access to that one page without hitting the login page?
>
> <configuration>
>
> <system.web>
>
> <authentication mode="Forms">
>
> <forms loginUrl="logon/logon.aspx" timeout="120"/>
>
> </authentication>
>
> <authorization>
>
> <allow roles="MyUsers"/>
>
> <deny users="*"/>
>
> </authorization>
>
> </system.web>
>
> <location path="logon">
>
> <system.web>
>
> <authorization>
>
> <allow users="*"/>
>
> </authorization>
>
> </system.web>
>
> </location>
>
> <location path="public.aspx">
>
> <system.web>
>
> <authorization>
>
> <allow users="*"/>
>
> </authorization>
>
> </system.web>
>
> </location>
>
- Next message: martymcdonald_at_comcast.net: "Re: Losing custom identity"
- Previous message: Joe: "Forms authentication not working right"
- In reply to: M Gallagher: "Forms Authentication: <location> authorization not bypasssing login page."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|