ccnet/CruiseControl.NET — pull request #124 by adamipc (2012-05-31 19:26:20+00:00)
Title: Basic HTTP Authentication for DefaultWebClient.

I use IIS Basic HTTP Authentication in front of my CruiseControl.NET WebDashboard. This change allows me to configure CCTray to use a Web Dashboard URL of the form: http://user:pass@server/ and it just works.

commit 62f1c1662a037f16de7de2932848cd36842ec84e
Author: Adam Wendt
Date: Thu May 31 11:25:29 2012 -0700

Implemented basic authentication for DefaultWebClient.

* Added private SetCredentials(Uri address) method to DefaultWebClient
that is called from UploadValuesAsync and UploadValues to set credentials
on innerClient based on the UserInfo field of the address passed in.

* Tested that both UploadValuesAsync and UploadValues set proper UserName
and Password if they are in the supplied address.

commit f3d70ddb61dea9a21af41dfee583ffe87174cc89
Author: Adam Wendt
Date: Wed May 30 16:38:43 2012 -0700

Initial failing test of DefaultWebClient

* UploadValuesSetsCredentialCacheOnWebClientWhenUserInfoInUrl: Implemented
using Rhino.Mocks.
* Changed DefaultWebClient so that it has a constructor that takes a
System.Net.WebClient so we can test that it acts on it.
* Made DefaultWebClient set innerClient.Credentials to a new
CredentialCache to pass the test.