How to validate JWT Token in aspnet.core web api?
I have created custom middleware class which validates the JWT token. I am calling this method before app.AddMvc() in configure method. *** I would like to know what are the things that I should add to Configuration services to authenticate my web API using JWT? I have added [Authorize] in my Controller class Do I need to call my middleware class which validates the JWT token first in Configure method? or I should call App.UseAuthentication() I am using the following order : app.UseAuthentication(); app.MessageHandlerMiddleware(); app.UseMvc(); I am new to .net web API implementation. Could