AD authentication in Asp.Net Core

Joe Green 146 Reputation points
2021-09-29T14:48:56.77+00:00

I'm new to Asp.Net Core. I would like to design an MVC intranet application which will use corporate AD (not Azure AD). I want users to enter their AD Username and Password along with AD domain as we have multiple corporate AD domains. After login, as per users role, they will see a different page (e.g. Admin vs non-admin users).

In Visual Studio 2019 I selected ASP.NET Core Web App (MVC) template. Under Authentication, I see following options
None
Individual Accounts
Microsoft Identity Platform
Windows

Which one should I use?

Joe

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 61,491 Reputation points
    2021-09-29T14:59:57.66+00:00

    Depends.

    If you pick windows, then iis should be configured to require security, either basic or Kerberos. Then iis will pass the user token to the asp.net core app, which will create user principal.

    If you means the app should have forms authentication that uses the the ad, then there is no default. This will be a custom. I’d pick none, and manually add cookie authentication.

    https://learn.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-5.0


0 additional answers

Sort by: Most helpful