This repository was archived by the owner on Dec 13, 2018. It is now read-only.
File tree 1 file changed +2
-2
lines changed
test/Microsoft.Owin.Security.Interop.Test 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public async Task AspNetCoreWithInteropCookieContainsIdentity()
29
29
var identity = new ClaimsIdentity ( "Cookies" ) ;
30
30
identity . AddClaim ( new Claim ( ClaimTypes . Name , "Alice" ) ) ;
31
31
32
- var dataProtection = new DataProtectionProvider ( new DirectoryInfo ( "..\\ ..\\ artifacts" ) ) ;
32
+ var dataProtection = DataProtectionProvider . Create ( new DirectoryInfo ( "..\\ ..\\ artifacts" ) ) ;
33
33
var dataProtector = dataProtection . CreateProtector (
34
34
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware" , // full name of the ASP.NET Core type
35
35
CookieAuthenticationDefaults . AuthenticationType , "v2" ) ;
@@ -85,7 +85,7 @@ public async Task InteropWithNewCookieContainsIdentity()
85
85
identity . AddClaim ( new Claim ( ClaimTypes . Name , "Alice" ) ) ;
86
86
user . AddIdentity ( identity ) ;
87
87
88
- var dataProtection = new DataProtectionProvider ( new DirectoryInfo ( "..\\ ..\\ artifacts" ) ) ;
88
+ var dataProtection = DataProtectionProvider . Create ( new DirectoryInfo ( "..\\ ..\\ artifacts" ) ) ;
89
89
var dataProtector = dataProtection . CreateProtector (
90
90
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware" , // full name of the ASP.NET Core type
91
91
CookieAuthenticationDefaults . AuthenticationType , "v2" ) ;
You can’t perform that action at this time.
0 commit comments