sender, EventArgs e)
, action =
sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
var url = unauthorizedEvent.Page.Url.TrimStart(
//for this specific page redirect to CustomerLoginPage
//for all other pages redirect to the Sitefinity login page
//if you do not use the else clause you will be redirected to the Sitefinity login page in all other cases different that the above one
Can you tell us which Sitefinity version are you using? Please try deactivating the Multisite module if applicable (version 5.4+), then specifying the FrontEndLoginPageUrl property's value should work.
Can you try stripping off the MVC controllers from the page/pages, so we can be certain that this is not the problem? Also try with either the FrontEndLoginPageUrl field, or the OnUnauthorizedAccess event, but not the 2 at same time and let us know of the outcome.
, Title =
, SectionName =
AuthenticationController : Controller
I have tested the provided code in a MVC widget which I have dropped on a page. Then I have requested that page from another browser in which I have not authenticated. I was redirected to the page specified in the FrontEndLoginPageUrl property.
Please go to Pages->Permissions for all pages and allow the pages to be viewed only by Authenticated users - see image.
Let me know if the redirect is still not executed afterwards.
Hi ,I am using sitefinity 7.2 version .How to access Backend Sitefinity page without login prompt. My client requirement he want that he should access backend pages on valid user (Window Authentication) please reply me as soon as possible
just have a look here:
I've tested this functionality both with the MVC and Webforms widget. They don't respond to theFrontEndLoginPageUrl value that was entered in the backend.
I had this issue with Sitefinity 7.3 and also with Sitefinity 8.0
How do I get a GUID from a login page?