Blending Windows Authentication with Forms Authentication

Consider the site used for the intranet, which should also be accessible from the Internet. On the intranet that you want to use Windows Authentication and on the Internet, you want users to access the site using forms authentication.

Is it possible to set up mixed mode with these two? I just want to confirm that the user is logged in with any of them without using two sites.

+7
asp.net-membership
source share
3 answers

You might want to consider a similar question: mixed-mode authentication against AD and returning to the database if it is not done with membership providers

In the answer, I install the solution using the facade. I used this approach to integrate AD into multiple domains, an aspnet sql provider, and an outdated authentication database with tangible success.

+4
source share

I do not know how to do that. But you can use a simple way:

Select forms authentication as your primary authentication and Windows card authentication. You can do this in AuthenticateRequest applications using global.asax or a special http handler or module. Define your intranet user in this request and configure the forms authentication cookie using the FormsAuthentication.SetAuthCookie programmatic form.

I really use this for mixed mode forms and for IP number authentication, but I think it will work for both forms and windows auth.

By the way: Perhaps the mixed mode form and IP number authentication is the second solution to your problem. If your server is part of the DMZ, you can find your user on the intranet by the IP number subnet.

+2
source share

Hi, I saw this page talking about Layer 2 authentication using IIS7: IIS 7.0 Two-level authentication with form authentication and Windows authentication , and this other one that has the same requirements as you: IIS mixed mode authentication for ASP applications .NET - http://beaucrawford.net/post/IIS-ldquo3bmixed-moderdquo3b-authentication-for-ASPNET-Application.aspx , but I don’t try, maybe this works for you? I think you just need to adapt it for your needs.

+1
source share

All Articles