I'm using .net core 3.1 and I have controller and want to add Authentication with the help of username and password before call the controller. how to Secure a .NET Core API using Bearer Authentication c#
please help.
public class BookController : ControllerBase

Sachin SinghPosted Nov 1, 2022, 6:03 PM
Use JWT as a bearer authentication mechation as discussed here
https://www.codemag.com/Article/2105051/Implementing-JWT-Authentication-in-ASP.NET-Core-5