Uncomment assert for delete cookie test

This commit is contained in:
Suhas Joshi 2014-10-16 11:12:56 -07:00
parent 0ef93b94dc
commit 73d3e2fa2e
1 changed files with 2 additions and 3 deletions

View File

@ -58,9 +58,8 @@ namespace E2ETests
ThrowIfResponseStatusNotOk(response);
responseContent = response.Content.ReadAsStringAsync().Result;
//Correlation cookie not getting cleared after successful signin?
//https://github.com/aspnet/Security/issues/69
//Assert.Null(httpClientHandler.CookieContainer.GetCookies(new Uri(ApplicationBaseUrl))["__TwitterState"]);
//Check correlation cookie not getting cleared after successful signin
Assert.Null(httpClientHandler.CookieContainer.GetCookies(new Uri(ApplicationBaseUrl))["__TwitterState"]);
Assert.Equal(ApplicationBaseUrl + "Account/ExternalLoginCallback?ReturnUrl=%2F", response.RequestMessage.RequestUri.AbsoluteUri);
//Twitter does not give back the email claim for some reason.
//Assert.Contains("AspnetvnextTest@gmail.com", responseContent, StringComparison.OrdinalIgnoreCase);