Valid access token still getting a 401

Solved it!!
Authentication had no problems. The thing is that aspnet in dotnet core is all about pipelines and middlewares…So the middleware order matters. The authentication middleware must be set up before the MVC one.

2 Likes