Add missing prefix on cookie name

This commit is contained in:
Nate McMaster 2016-03-08 10:06:44 -08:00
parent 7a624ba5be
commit 6c2f6d245b
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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-*",