<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to get the login dialog when using the Team Foundation Server API</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx</link><description>Someone asked how to get the login dialog if the user fails to authenticate. The code to do that is shown below. I copied the call to the constructor from the basic API example , and I've added code to create and pass a UICredentialsProvider object to</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How to get the login dialog when using the Team Foundation Server API</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#553789</link><pubDate>Fri, 17 Mar 2006 18:16:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:553789</guid><dc:creator>Ravi Terala</dc:creator><description>I recommend using TeamFoundationServerFactory for most purposes. You only need the constructor version if you need two TFS OM objects to the same server using two different credentials. </description></item><item><title>VSTS Links - 03/20/2006</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#555477</link><pubDate>Mon, 20 Mar 2006 16:14:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:555477</guid><dc:creator>Team System News</dc:creator><description>Jeff Beehler says Team Foundation Server Ships! &amp;nbsp;And so does John Lawrence, complete with a picture of...</description></item><item><title>Typo</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#555761</link><pubDate>Mon, 20 Mar 2006 21:18:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:555761</guid><dc:creator>hippietim</dc:creator><description>I think you mean EnsureAuthenticated &lt;br&gt;&lt;br&gt;:P</description></item><item><title>re: How to get the login dialog when using the Team Foundation Server API</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#556052</link><pubDate>Tue, 21 Mar 2006 02:19:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:556052</guid><dc:creator>Ravi Terala</dc:creator><description>tfs = TeamFoundationServerFactory.GetServer(&amp;quot;tfsurl&lt;br&gt;, new UICredentialsProvder());&lt;br&gt;tfs.EnsureAuthenticated();&lt;br&gt;&lt;br&gt;will give you the login dialog _if_ needed. It will grab the stored credentials from the stored user names and passwords control panel applet if it contains credentials for the TFS server.&lt;br&gt;</description></item><item><title>re: How to get the login dialog when using the Team Foundation Server API</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#556157</link><pubDate>Tue, 21 Mar 2006 04:01:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:556157</guid><dc:creator>buckh</dc:creator><description>Ravi, that's not correct. &amp;nbsp;The TeamFoundationServer object does not write to or read from the stored user names and passwords. &amp;nbsp;There was a time when it used it, but it was buggy and was removed.</description></item><item><title>TFS API: How to choose between TeamFoundationServerFactory.GetServer()  and the TeamFoundationServer constructor</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#755125</link><pubDate>Fri, 15 Sep 2006 05:36:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:755125</guid><dc:creator>Buck Hodges</dc:creator><description>Occasionally the question of whether to use the TeamFoundationServerFactory.GetServer() method or the...</description></item><item><title>TFS API: How to choose between TeamFoundationServerFactory.GetServer()  and the TeamFoundationServer constructor</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#4659183</link><pubDate>Fri, 31 Aug 2007 06:06:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4659183</guid><dc:creator>Buck Hodges</dc:creator><description>&lt;p&gt;Occasionally the question of whether to use the TeamFoundationServerFactory . GetServer() method or the&lt;/p&gt;
</description></item><item><title>How to get the login dialog when using the Team Foundation Server API</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#8960614</link><pubDate>Sun, 21 Sep 2008 20:41:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960614</guid><dc:creator>Shai Raiten</dc:creator><description>&lt;p&gt;How to get the login dialog when using the Team Foundation Server API Published On: Buck Hodges Blog&lt;/p&gt;
</description></item><item><title>Login dialog when using the Team Foundation Server API</title><link>http://blogs.msdn.com/buckh/archive/2006/03/17/credentialprovider.aspx#9402875</link><pubDate>Sat, 07 Feb 2009 00:22:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9402875</guid><dc:creator>Suresh Behera</dc:creator><description>&lt;p&gt;nwc = new NetworkCredential(tfsuid, TFSPass, TFSDomain); tfs = new TeamFoundationServer(TFSServerUrl&lt;/p&gt;
</description></item></channel></rss>