Viewing one page without having to be forms authenticated (the registration page case)
Q. How do I remove an individual page from having to be forms authenticated to view it? I don't want to reorganize my site to have a wide open directory containing only one page. I just want this one page accessible. It is a registration page for new users.
A. Having run into this myself and seen it asked multiple times on discussion aliases. I thought I would blog the solution I used. Answer is to drop something like this into the configuration node of your web.config.
<location path="register.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Comments
- Anonymous
August 29, 2003
I think that should be:
<allow users="?" />
<allow users="*" />
The ? allows non-authenticated users... - Anonymous
August 29, 2003
In this case, the effect is the same. A question mark (?) allows anonymous users; an asterisk (*) allows all users. - Anonymous
August 29, 2003
True enough. I always thought that * only represented authenticated users...
I stand corrected... - Anonymous
June 12, 2009
PingBack from http://toenailfungusite.info/story.php?id=8281