简体   繁体   中英

Internal and External Authentication against Active Directory users using Asp.Net MVC

I have to create a new ASP.Net MVC web app. This web app will accessed by company users internally and externally. Users are already in active directory.

When accessed externally, authenticate using their AD username and password from login page.

Any reference would be helpful.

The easiest way is to use Windows authentication when creating the ASP.NET MVC site.

选择Windows身份验证

This requires your web server to be in the same AD as the users, so if you plan to have it hosted somewhere, that is not an option.

If you plan to have the server hosted somewhere outside your AD, you should take a look at ADFS or sync to Azure AD (you don't have to use Azure for anything else).

The built-in authentication methods are described in the Microsoft docs

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