Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net MVC 3 Areas and Mixed Mode Authentication

Is it possible to have an ASP.Net MVC Area use different authentication then the rest of the application? The main app has to be forms authentication since it's an extranet. I need to have an Admin section that is only accessible by internal employees. I've done a lot of research and have found examples of how to do Mixed Mode, but I have not found anything showing how to do it with an ASP.Net MVC Area.

Thanks for your help.

like image 520
Tom Schreck Avatar asked Feb 03 '26 11:02

Tom Schreck


1 Answers

Each area can have its own web.config where you can configure/override the kind of authentication you want.

Here's blog post about areas and multiple web.config files: http://mstechkb.blogspot.com/2010/10/areas-in-aspnet-mvc-20.html

like image 159
stefann Avatar answered Feb 05 '26 07:02

stefann