- Mastering ASP.NET Web API
- Mithun Pattankar Malendra Hurbuns
- 196字
- 2021-07-02 20:52:32
Selecting authentication type
Every application needs some type of authentication to prevent unauthorized access to the application. In the preceding screenshot, Change Authentication will provide the following authentication options:
- No Authentication: Choosing this option will not add any authentication packages to the application. However, we can add such packages to completely safeguard our application data when required.
- Individual User Accounts: Connecting to an Azure AD B2C application will provide us with all the authentication and authorization data.
- Work or School Accounts: Enterprises, organizations, and schools that authenticate users with Office 365, Active Directory, or Azure Directory services can use this option.
- Windows Authentication: Applications used in the Intranet environment can use this option.
In the Change Authentication option, select No Authentication, as shown in this screenshot:

Select Authentication Type for Web API
Click on OK to create an ASP.NET Core Web API project; Visual Studio tooling will immediately start restoring the packages needed.
The dotnet restore command is executed to restore all the NuGet packages.
We saw how the Visual Studio IDE tooling helps us to create ASP.NET Core applications on Windows OS. This is similar to that when creating ASP.NET (MVC 4/5 and ASPX) applications.