Articles based on ASP.NET Core projects created with individual user accounts

ASP.NET Core Identity is included in project templates in Visual Studio with the "Individual User Accounts" option.

The authentication templates are available in .NET Core CLI with -au Individual:

dotnet new mvc -au Individual
dotnet new webapp -au Individual
dotnet new mvc -au Individual
dotnet new razor -au Individual

See this GitHub issue for web API authentication.

No Authentication

Authentication is specified in the .NET Core CLI with the -au option. In Visual Studio, the Change Authentication dialog is available for new web applications. The default for new web apps in Visual Studio is No Authentication.

Projects created with no authentication:

  • Don't contain web pages and UI to sign in and sign out.
  • Don't contain authentication code.

Windows Authentication

Windows Authentication is specified for new web apps in the .NET Core CLI with the -au Windows option. In Visual Studio, the Change Authentication dialog provides the Windows Authentication options.

If Windows Authentication is selected, the app is configured to use the Windows Authentication IIS module. Windows Authentication is intended for Intranet web sites.

dotnet new webapp authentication options

The following table shows the authentication options available for new web apps:

Option Type of authentication Link for more information
None No authentication.
Individual Individual authentication. Introduction to Identity on ASP.NET Core
IndividualB2C Cloud-hosted individual authentication with Azure AD B2C. Azure AD B2C
SingleOrg Organizational authentication for a single tenant. Entra External ID tenants also use SingleOrg. Entra ID
MultiOrg Organizational authentication for multiple tenants. Entra ID
Windows Windows authentication. Windows Authentication

Visual Studio new webapp authentication options

The following table shows the authentication options available when creating a new web app with Visual Studio:

Option Type of authentication Link for more information
None No authentication
Individual User Accounts / Store user accounts in-app Individual authentication Introduction to Identity on ASP.NET Core
Individual User Accounts / Connect to an existing user store in the cloud Cloud-hosted individual authentication with Azure AD B2C Azure AD B2C
Work or School Cloud / Single Org Organizational authentication for a single tenant Azure AD
Work or School Cloud / Multiple Org Organizational authentication for multiple tenants Azure AD
Windows Windows authentication Windows Authentication

Additional resources

The following articles show how to use the code generated in ASP.NET Core templates that use individual user accounts: