Scenario:
How to make an application pages (_layouts page) in SharePoint anonymous?
Resolution:
Use the UnsecuredLayoutsPageBase as a base class for the application pages to which even unauthenticated users must have access, such as a login page.Additionally you need to override one more method AllowAnonymousAccess to return true and you are all set.
If the application page does not have code-behind, the below snippet will mark the property "AllowAnonymousAccess" to true:
public class ApplicationPage : Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase
{
protected override bool AllowAnonymousAccess { get { return true; }
}
Vinay Chavadi's Blog on Application Development in SharePoint 2010/2013/2016 & SharePoint Online
Subscribe to:
Posts (Atom)
-
There are 3 SPJobLockType available: 1. SPJobLockType.None -- if you set it none, the instance will run in all the available s...
-
Most of you who are working on Remote Event Receivers must have encountered this issue of "Updated event getting fired multiple times&...