官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 浙江省| 嵩明县| 邵阳市| 湖口县| 尚义县| 新郑市| 北流市| 东莞市| 盈江县| 峨边| 宜兰市| 嫩江县| 淮南市| 泰安市| 团风县| 龙川县| 民乐县| 阳山县| 诸暨市| 依安县| 怀集县| 昌图县| 三原县| 金门县| 葵青区| 驻马店市| 贺州市| 鹤岗市| 江城| 丹寨县| 兰西县| 隆昌县| 稷山县| 邹城市| 宁夏| 班戈县| 栾城县| 法库县| 博爱县| 扬州市| 诏安县|