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