I am trying to do something similar to this solution, but in Umbraco 10 and I haven't been successful. Please help. In other words, what's the equivalent of this in Umbraco 10?
var t = new HttpContextWrapper(HttpContext.Current).GetUmbracoAuthTicket()
HttpContext in Umbraco 10
Hi,
I am trying to do something similar to this solution, but in Umbraco 10 and I haven't been successful. Please help. In other words, what's the equivalent of this in Umbraco 10?
var t = new HttpContextWrapper(HttpContext.Current).GetUmbracoAuthTicket()
Hi,
Not sure if this is what you need, but I am using this code in a middleware component I use to protect some Media folders
The class that calls this has
IOptionsSnapshot<CookieAuthenticationOptions>
injected in it's constructorI ended up using the content type service (IContentTypeService).
is working on a reply...