I'm aware of alternate credentials (Authenticating to hosted TFS: TF30063: You are not authorized to access .visualstudio.com) but I need users to be prompted for the credentials when connecting to visualstudio.com.
Similar in spirit to the code below, which does not work
var aTeamProjects = new TfsTeamProjectCollection(m_oTfsCollectionUri);
aTeamProjects.ClientCredentials.PromptType = CredentialPromptType.PromptIfNeeded;
aTeamProjects.Authenticate();
In the code above the Authenticate
-request results in TF30063: You are not authorized to access .visualstudio.com.