Skip to Content

Solved: What are the recommended authentication settings in IIS 10 for ASP.NET Core MVC application

Question

I have created a ASP.NET Core 5.0 MVC application using environment as below:

  • SQL Server 2019 for the database and Entity Framework.
  • ASP.NET Core Identity for Authentication and Authorization.
  • Visual Studio 2019
  • IIS 10.0

These are the tables in my database that have the users and roles.

Tables in my database that have the users and roles.

When I publish my application with Visual Studio 2019, I usually publish to a Folder and then push the files to my website folder on IIS 10. In IIS Manager, I was looking at the Authentication settings for my Site and these are the options.

I was looking at the Authentication settings for my Site and these are the options.

If I use ASP.NET Core Identity for Authentication and Authorization, which of these settings do I need to Enable or Disable for my website?

Or

Is there some other Setting that I need to set on my website so I can use ASP.NET Core Identity?

Answer

Either ASP.NET Impersonation or Anonymous Authentication will work.

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. We need money to operate the site, and almost all of it comes from online advertising. Please support us by disabling these ads blocker.

Please disable ad blocker