How can I mix form authentication and Windows authentication in MVC 2 in IIS 7.5?

I saw that this has been published a lot, which solves the problem if you are using an ASP.Net application and not MVC 2 in IIS 7.5. Will the same solution work using location in web.config and two separate login pages, for example for asp.net? Need to register a new route for this?

I know that it will work with 2 separate applications in IIS, but I want all of them to be in one application. Any ideas?

Solutions for asp.net

+3
source share
1 answer

It looks like you can use the following solution.

But I had to create an ASP.net page inside my MVC solution, which gets directly to handle Windows authentication, and then redirects to the mvc site. The location section inside web.config should work then, since it does not rely on routing.

+3
source

Source: https://habr.com/ru/post/1776287/


All Articles