using System.Web; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security; using Umbraco.Core; using Umbraco.Core.Models.Identity; using Umbraco.Core.Security; using Umbraco.Web.Security.Identity; namespace Umbraco.Web.Security { internal static class OwinExtensions { /// /// Gets the for the Umbraco back office cookie /// /// /// internal static ISecureDataFormat GetUmbracoAuthTicketDataProtector(this IOwinContext owinContext) { var found = owinContext.Get(); return found?.Protector; } } }