Asp.Net Forms Authentication SSO between 4.0 and 2.0 applications

こ雲淡風輕ζ 提交于 2019-12-06 01:55:01
tonymayoral

After several days of desperation this worked: in the 4.0 web.config configuration tag

<appSettings>
    <add key="aspnet:UseLegacyFormsAuthenticationTicketCompatibility" value="true" />
    <add key="aspnet:UseLegacyEncryption" value="true" />
    <add key="aspnet:UseLegacyMachineKeyEncryption" value="true" />
</appSettings>
mclark1129

Please see the answer to this question for tips on how to manage encryption between legacy web applications.

If adding these appSetting keys doesn't work then try adjusting the Compatibility Mode of the MachineKey element, especially if one of your applications targets .NET 4.5:

http://msdn.microsoft.com/en-us/library/system.web.configuration.machinekeysection.compatibilitymode.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!