Re: Bypassing authentication
- From: "Teemu Keiski" <joteke@xxxxxxxxxxxxxxx>
- Date: Tue, 18 Apr 2006 08:15:23 +0300
As I said, no tilde. ;-)
allow="?" means just that allow unauthenticated users to access the page
(not sure if that makes difference here, but that depends on how you users
are accessing it). allow="*" means that all are allowed.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"John" <John@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23$vm5RkYGHA.1200@xxxxxxxxxxxxxxxxxxxxxxx
This worked (below). Note the * and no ~.
<location path="FolderA/FolderB/a.asmx">
<system.web>
<authorization>
<allow users="*"></allow>
</authorization>
</system.web>
</location>
"Teemu Keiski" <joteke@xxxxxxxxxxxxxxx> wrote in message
news:OwDFBEhYGHA.4652@xxxxxxxxxxxxxxxxxxxxxxx
Try without tilde (~ ) in path attribute
Here's docs about <location> element:
http://msdn2.microsoft.com/en-US/library/b6x6shw7(VS.80).aspx
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"John" <John@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%238O$OAgYGHA.460@xxxxxxxxxxxxxxxxxxxxxxx
I have used below but no luck. Am I missing something?
Thanks
Regards
<location path="~FolderA/FolderB/a.asmx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
"Teemu Keiski" <joteke@xxxxxxxxxxxxxxx> wrote in message
news:%23wW4hxeYGHA.508@xxxxxxxxxxxxxxxxxxxxxxx
In web.config with <location> element
<configuration>
<location path="exclude.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<! -- Normal config goes here as before -->
<system.web>
</system.web>
</configuration>
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"John" <John@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ew6G9jdYGHA.508@xxxxxxxxxxxxxxxxxxxxxxx
Hi
I have established form authentication so every page on the site send
the access to a specific login page. I need however to bypass the
authentication for my web service page to allow it to be accessed
without login. How can I selectively exclude a page from form
authentication?
Thanks
Regards
.
- References:
- Bypassing authentication
- From: John
- Re: Bypassing authentication
- From: Teemu Keiski
- Re: Bypassing authentication
- From: John
- Re: Bypassing authentication
- From: Teemu Keiski
- Re: Bypassing authentication
- From: John
- Bypassing authentication
- Prev by Date: Re: how to create dnamic treeview in asp.net 2.0 bind with sql server 2005 table
- Next by Date: Form authentication of ASP.NET 2.0
- Previous by thread: Re: Bypassing authentication
- Next by thread: HyperlinkColumn = Email!
- Index(es):
Relevant Pages
|