Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 22f55d5

Browse files
committed
Reacting to DataProtection changes
1 parent 1a8d531 commit 22f55d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.Owin.Security.Interop.Test/CookieInteropTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public async Task AspNetCoreWithInteropCookieContainsIdentity()
2929
var identity = new ClaimsIdentity("Cookies");
3030
identity.AddClaim(new Claim(ClaimTypes.Name, "Alice"));
3131

32-
var dataProtection = new DataProtectionProvider(new DirectoryInfo("..\\..\\artifacts"));
32+
var dataProtection = DataProtectionProvider.Create(new DirectoryInfo("..\\..\\artifacts"));
3333
var dataProtector = dataProtection.CreateProtector(
3434
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET Core type
3535
CookieAuthenticationDefaults.AuthenticationType, "v2");
@@ -85,7 +85,7 @@ public async Task InteropWithNewCookieContainsIdentity()
8585
identity.AddClaim(new Claim(ClaimTypes.Name, "Alice"));
8686
user.AddIdentity(identity);
8787

88-
var dataProtection = new DataProtectionProvider(new DirectoryInfo("..\\..\\artifacts"));
88+
var dataProtection = DataProtectionProvider.Create(new DirectoryInfo("..\\..\\artifacts"));
8989
var dataProtector = dataProtection.CreateProtector(
9090
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET Core type
9191
CookieAuthenticationDefaults.AuthenticationType, "v2");

0 commit comments

Comments
 (0)