In my code (C# MVC App) I have access to a password and username. I want to create a Microsoft online cookie for the user, so he can access an application without providing his credentials again (SSO).
How can I programmatically sign in a user to microsoft online?