I'm making a web service by using Asp.net Framework. I'm struggling with jwt authentication.
I wonder if there is any AuthenticationHandler in ASP.NET Framework as ASP.Net core or not - where I can get token from request header, validate and set to HttpContext.
I want to authenticate every single request as header is available. In AuthorizeAttribute, I only get the information from HttpContext.User and validate the availability of account in my system without parsing token there.
Finally, my question is : How can I write AuthenticationHandler to validate every API Request ?
Thank you,