1

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,

4
  • Have you done any research? Are any of the linked articles useful? Narrow down your problem as this is to broad for Stack Overflow. Commented Nov 15, 2016 at 4:06
  • 2
    I did already before asking this question. Thing I'm talking about is create my own authenticationhandler. Commented Nov 15, 2016 at 4:08
  • This question seems to ask something similar stackoverflow.com/questions/36095076/… Commented Nov 15, 2016 at 4:14
  • 2
    Not similar :| . I'm asking about ASP.NET Framework, not Core Commented Nov 15, 2016 at 5:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.