Authorize master page to anonymous users
-
mercredi 27 juin 2012 17:14
I have a site using forms authentication in which I deny access to anonymous users in the web.config:
<authorization> <deny users="?" /> </authorization>
There are a few pages (registration page, error page) that I want to allow access to anonymous users so I have added exceptions for them:
<location path="Register.aspx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <location path="UserMessage.aspx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location>
These pages are set up to use my master page, but they are not displaying correctly. I think it is because my master page is being denied anonymous access? How can I allow anonymous access to the sharepoint master page these pages are using and its styles?
Toutes les réponses
-
mercredi 27 juin 2012 18:28
I allowed access to everything in my masterpage directory. I had tried this with a typo in the path so I thought it wasn't working when I posted:
<location path="_catalogs/masterpage"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location>
I also had to do similar entries for the associated images and style sheets.

