Sharing authentication between two web applications

I found it myself.

This is the article on MSDN that talks exactly about this scenario. I decided to keep this question anyway for anyone that would be chasing the same information some time later.

MSDN: Forms Authentication Across Applications

In brief

You have to configure machine keys in web.config of both applications so they match hence they’ll be able to decode data that the other party generated. And that’s the whole trick. MSDN article explains this in great detail including how to generate those keys.

Leave a Comment