Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Authentication type - individual user accounts for Web API in .NET Core is not available when we creating new Web APi service

Why it`s not possible to create Web API project with Individual User Accounts Authorization type?

Screenshot: Change authentication dialog

like image 493
Alexey Burlaka Avatar asked Jul 05 '16 21:07

Alexey Burlaka


People also ask

How do I enable authentication in web API?

In IIS Manager, go to Features View, select Authentication, and enable Basic authentication. In your Web API project, add the [Authorize] attribute for any controller actions that need authentication. A client authenticates itself by setting the Authorization header in the request.

How do I change my authentication to individual accounts?

From the ASP.NET project window select "WebAPI". Click on the "Change Authentication" button. From the Change Authentication dialog select "Individual User Accounts". Click on the "OK" button.


2 Answers

UPDATE:

All version numbers are updated from v1.2 to v2.0.


Please find the ASP.NET Core Schedule and Roadmap:

Identity Application Services

A service layer will be added ASP.NET Core Identity and included in the project templates using Individual Authentication. This will allow authentication of users by way of JWT tokens such that Web APIs can be secured out of the box, and make it simpler to change authentication systems, e.g. from in-app Identity to Azure AD B2C, or 3rd-party solutions like Identity Server.

like image 70
Lukasz Mk Avatar answered Sep 19 '22 04:09

Lukasz Mk


Daniel Roth from MS:

Support for individual user accounts with the Web API template in VS is not available yet. We are still looking at providing a supported on premise offering for token issuance in addition to providing integration with Azure AD B2C.

This statement can be found in the comment section under https://channel9.msdn.com/Events/dotnetConf/2016/Building-Secure-Web-APIs-with-ASPNET-Core

like image 21
Petr Havlicek Avatar answered Sep 22 '22 04:09

Petr Havlicek