Sharing Owin Cookie Authentication and legacy Forms Authentication cookie based

微笑、不失礼 提交于 2019-12-10 13:44:47

问题


In our company, we have a large base of application built with Asp.net Web Forms 4.0 that use forms authentication as a single-sign-on authentication. Configured something like this:

<machineKey decryptionKey="..." validationKey="..." />
<authentication mode="Forms">
    <forms cookieless="UseCookies" loginUrl="/url/to/login" />
</authentication>

Last times we are working on some projects that use Owin Cookie authentication. According to the searches I did, both methods are not compatible. However I found this post OWIN Self-Host CookieAuthentication & Legacy .NET 4.0 Application / FormsAuthenticationTicket in which I could have a possibility to get both of them working together, but I can't get entire code working very well. In fact I don't know how to develop the remainder codes.

I would ask you if anybody have some solution to this issue or a more simple way to do this?

I need to tell you I have no very much knowledge about the details of Microsoft Implementation of Forms Authentication.

来源:https://stackoverflow.com/questions/31253348/sharing-owin-cookie-authentication-and-legacy-forms-authentication-cookie-based

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