For implementation, you want to look at how to pass credentials between ASP.NET applications.