I want to add a page to my Umbraco website that only users who are logged into the Umbraco back end will be able to access, but I haven't been able to figure out how Umbraco does it's authentication.
All that I've been able to figure out from debugging is that after I log in to Umbraco, I check HttpContext.Current.User.Identity.IsAuthenticated, it's false, so it's not doing authentication that way.
Does anyone know where I'd find the code where Umbraco does it's authentication checks and sends users back to the login screen if they're not logged in? I need to hook in to this and extend it to my new page.
Back-end authentication is handled by an internal mechanism and not by ASP.Net Membership provider. What you can try is check if umbraco.BusinessLogic.User.GetCurrent() is null or not, not sure if this works, but User.GetCurrent() should return the backoffice user.
How does Umbraco secure it's internal CMS pages?
I want to add a page to my Umbraco website that only users who are logged into the Umbraco back end will be able to access, but I haven't been able to figure out how Umbraco does it's authentication.
All that I've been able to figure out from debugging is that after I log in to Umbraco, I check HttpContext.Current.User.Identity.IsAuthenticated, it's false, so it's not doing authentication that way.
Does anyone know where I'd find the code where Umbraco does it's authentication checks and sends users back to the login screen if they're not logged in? I need to hook in to this and extend it to my new page.
Hi,
Back-end authentication is handled by an internal mechanism and not by ASP.Net Membership provider. What you can try is check if umbraco.BusinessLogic.User.GetCurrent() is null or not, not sure if this works, but User.GetCurrent() should return the backoffice user.
Hope this helps,
Richard
Exactly what I was looking for. Thanks!
is working on a reply...