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 SinghRank #66 · 26.2K reputationPosted Nov 1, 2022, 2:03 PM EDT
Use JWT as a bearer authentication mechation as discussed here
https://www.codemag.com/Article/2105051/Implementing-JWT-Authentication-in-ASP.NET-Core-5