Authorization of specific pages

A

Andy G

I have my authorization in web.config set to <deny users="?" />, this is
what I want because we use forms authenthentication that sets a auth cookie.
We have a few pages that need to be accessed without the user having the
auth cookie. Is there a simple way to list the certain pages that you want
"unprotected"? I tried using the below and I get that stupid server error
telling you that your custom errors need to be set to off or something. I
put the below outside the already established <configuration> and
<system.web> settings. Thank you for any help or direction you might give
me.

<location path="file\path\here.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
 
A

Andy G

Forgot to mention that IIS settings are set up for forms authentication. The
Basic authentication is not checked and aunonymous access is checked. I
don't know if you need to know this or not.
 
A

Andy G

I figured this out.

It needs to go after the already established <configuration> tag, after the
already established <system.web> tag but before the </configuration> tag at
the end of the web.config file. Hope that makes sense.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top