Merge pull request #259 from aspnet/TwitterTest

Uncomment assert for delete cookie test
This commit is contained in:
Suhas Joshi 2014-10-16 12:03:57 -07:00
commit 0c7b714680
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);