Menu

Setting up Asp.net core API for JwtBearer Authentication

In your Startup.cs under ConfigureServices register authentication like below, make sure you do it after services.AddMvc

Now under Configure you can change the request like below

You can protect controllers like below, using policies

Happy coding

 

 

Leave a comment