I'm assisting a team of developers with a MVC web app that's presenting a custom log in for authentication.
They use the user entered id and password to validate the user against ActiveDirectory (via a call to System.Web.Security.Membership.ValidateUser). They need later to use the same credentials to access the TFS API 2.0 (TFS 2015). That is, they want the user to only be able to see the TFS user stories, work items etc. that are associated with their user ID.
Is there some way to get (or save) the user credentials from the Membership.ValidateUser call to use them later with the TFS API? They've tried cookies but can't seem to quite get that to work.