diff --git a/test/E2ETests/Implementation/Validator.cs b/test/E2ETests/Implementation/Validator.cs index 6e82dacf33..1011b1c6c0 100644 --- a/test/E2ETests/Implementation/Validator.cs +++ b/test/E2ETests/Implementation/Validator.cs @@ -8,14 +8,15 @@ using Microsoft.AspNetCore.Server.Testing; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Internal; using Microsoft.AspNetCore.Identity; +using Microsoft.AspNetCore.Authentication.Cookies; using Xunit; namespace E2ETests { public partial class Validator { - private static readonly string IdentityCookieName = new IdentityCookieOptions().ApplicationCookieAuthenticationScheme; - private static readonly string ExternalLoginCookieName = new IdentityCookieOptions().ExternalCookieAuthenticationScheme; + private static readonly string IdentityCookieName = CookieAuthenticationDefaults.CookiePrefix + new IdentityCookieOptions().ApplicationCookieAuthenticationScheme; + private static readonly string ExternalLoginCookieName = CookieAuthenticationDefaults.CookiePrefix + new IdentityCookieOptions().ExternalCookieAuthenticationScheme; private HttpClient _httpClient; private HttpClientHandler _httpClientHandler; diff --git a/test/E2ETests/project.json b/test/E2ETests/project.json index 9f0d27bb3d..70cfa26e41 100644 --- a/test/E2ETests/project.json +++ b/test/E2ETests/project.json @@ -7,6 +7,7 @@ ], "dependencies": { "Microsoft.AspNetCore.Identity": "1.0.0-*", + "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-*", "Microsoft.AspNetCore.Authentication.OpenIdConnect": "0.1.0-*", "Microsoft.AspNetCore.Server.Testing": "1.0.0-*", "Microsoft.AspNetCore.WebUtilities": "1.0.0-*",