Hello,
I have some pages in app which can be accessed by unauthorized users.
For example, one page accessed as:
{physicalPath}/popup/Page1.aspx
{projectPath}/popup/Page1.aspx{serverPath}/apsx/external/Page/{id}
Route is registered in Global.asax as:
routes.MapPageRoute("ViewPage", "external/Page/{AccessKey}/", "~/popup/Page1.aspx", false,
new RouteValueDictionary { { ACCESSKEY, HttpRoutes.RouteParameter.Optional } });
routes.RouteExistingFiles = false;
In Web.config added node:
<location path="external">
<system.web>
<authorization>
<allow users="?" />
<allow users="*" />
</authorization>
</system.web>
</location>
Form authentication is configured as:
Go to the complete details ...