Add the following clause to GetServerType(discoUri) "if" statement in DiscoverButton_Click method to enable Federated Authentication. Line 178 in my version of the code.
elseif (this.GetServerType(discoUri) == AuthenticationProviderType.Federation) {this.ClientCreds.UserName.UserName = this.UserNameTextBox.Text;this.ClientCreds.UserName.Password = this.PasswordTextBox.Text; dsp = new DiscoveryServiceProxy(dinfo, this.ClientCreds);this.IsLiveID = false; }