Sharing Owin Cookie authentication and legacy authentication cookies

In our company, we have a large application database created using Asp.net Web Forms 4.0, which uses form authentication as one-time authentication. Configured something like this:

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

Recently, we have been working on some projects using Owin Cookie authentication. According to the searches I made, both methods are incompatible. However, I found this OWIN Self-Host CookieAuthentication and Legacy.NET 4.0 Application / FormsAuthenticationTicket post in which I had the opportunity to get both of them to work together, but I can "All the code works very well. Actually, I donโ€™t know how develop residual codes.

I would ask if anyone has a solution to this problem or an easier way to do this?

I need to say that I am not very well versed in the implementation details of Microsoft Forms Authentication.

+5
source share

All Articles