Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
krmorse committed Nov 7, 2013
2 parents eb378d8 + af41a3f commit 0f13faa
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ local.properties
*.meta
*.obj
*.pch
*.pdb
#*.pdb
*.pgc
*.pgd
*.rsp
Expand Down
1 change: 0 additions & 1 deletion Rally.RestApi.Test/SSOHelperTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public void ParseSSOTokenPage()
Assert.AreEqual(cookie.Value, "khkjhkhkhkhkjhh");
Assert.AreEqual(cookie.Domain, "us1.rallydev.com");
Assert.AreEqual(cookie.Path, "/");
Assert.IsTrue(cookie.Secure);
}

private String getDataFromFile(String filename)
Expand Down
1 change: 0 additions & 1 deletion Rally.RestApi.Test/data/SSOTokenPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<input type="hidden" name="authCookieValue" value="khkjhkhkhkhkjhh"/>
<input type="hidden" name="authCookieDomain" value="us1.rallydev.com"/>
<input type="hidden" name="authCookiePath" value="/"/>
<input type="hidden" name="authCookieSecure" value="true"/>
</form>
</body>
</html>
8 changes: 4 additions & 4 deletions Rally.RestApi/SSOHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,12 @@ public static Cookie parsSSOLandingPage(String htmlPage)
authCookie.Value = inputNode.GetAttributeValue("value", "");
continue;
case "authCookieDomain":
authCookie.Domain = "";
//authCookie.Domain = inputNode.GetAttributeValue("value", "");
String domain = inputNode.GetAttributeValue("value", "");
authCookie.Domain = domain == null || domain == "null" ? "" : domain;
continue;
case "authCookiePath":
authCookie.Path = "";
//authCookie.Path = inputNode.GetAttributeValue("value", "");
String path = inputNode.GetAttributeValue("value", "");
authCookie.Path = path == null || path == "null" ? "" : path;
continue;
}
}
Expand Down
Binary file added Rally.RestApi/lib/HtmlAgilityPack.dll
Binary file not shown.
Binary file added Rally.RestApi/lib/HtmlAgilityPack.pdb
Binary file not shown.

0 comments on commit 0f13faa

Please sign in to comment.