简体   繁体   中英

ASP.MVC Intranet and Internet Authentication

I am curious about if MVC4 or MVC 5 supports a feature such that, my application will be accessible via internet and users will be able to login which i can use some membership provider, then same application is available via intranet that users won't need to login ie will be authenticated via AD or if they are in domain no authentication will be required.

Is this possible? is there a built in functionality for this ?

If you use

<authentication mode="Windows" /> 

in your web.config file you have exactly that comportment

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM