Fix cookie middleware name for interop package

This commit is contained in:
Hao Kung 2016-07-05 13:32:01 -07:00
parent 4995865158
commit 9e02042798
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace Owin
public static ISecureDataFormat<AuthenticationTicket> CreateSharedDataFormat(DirectoryInfo keyDirectory, string authenticationType)
{
var dataProtector = DataProtectionProvider.Create(keyDirectory)
.CreateProtector("Microsoft.AspNet.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET 5 type
.CreateProtector("Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET 5 type
authenticationType, "v2");
return new AspNetTicketDataFormat(new DataProtectorShim(dataProtector));
}