I have two website i.e. A and B, where A and B both have their user store separately. If user is authenticated user of A, it should be able to access all authorized pages of B and visa versa.
Can someone help me how i can do this using Windows identity foundation. Thanks
Read the main article by MSDN which completely describes What is Windows Identity Foundation that says:
So you should have the less problems for authentication across multiple applications.
A great start point would be the MSDN one which is How To: Build Claims-Aware ASP.NET MVC Web Application Using WIF
To understand How it works see this helpful MSDN blog.
Another example of WIF + MVC is available in Federated Identity with Multiple Partners where I exhort you to read the first chapters to understand all underlying principles.
Update: Around STS According to MSDN:
The following Links can be helpful around STS: