ASP.NET Core Authorize attribute not working with JWT
The accepted answer is the 2nd answer in the list. I thought SO used to put the accepted answer at the top, didn't it?
Regarding this question being a duplicate of this question. From a search point of view it cannot be, because you'd literally need to know the answer to this question in order to find that post. The answer may be the same, but the question is different.