且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在两个 Web 应用程序之间共享身份验证

更新时间:2023-12-04 18:33:46

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.