No Individual User Accounts auth option in ASP.NET Core Web API template

后端 未结 2 1523
抹茶落季
抹茶落季 2021-02-01 15:24

I am a bit confused as to why there is no Individual User Accounts authentication option in the latest ASP.NET Core Web API template.

Is it still possible to implement i

2条回答
  •  半阙折子戏
    2021-02-01 16:17

    I think you can use IdentityServer4 which allows implementing single sign-on and access control for ASP .NET Core Web APIs using protocols like OpenID Connect and OAuth2. It offers integration with ASP.NET Core Identity and Entity Framework Core.

    You will need to install to the following nuget package:

    Install-Package IdentityServer4
    

    and add the IdentityServer middleware to the HTTP pipeline:

    app.UseIdentityServer();
    

    You can find several quick start samples here or follow this article.

提交回复
热议问题