Closed Myrmex closed 8 years ago
Hi @Myrmex - I think you have the authorization header wrong - it should just be Authorization: Bearer eyJhbGciOiJ...
rather than Authorization: Bearer token=eyJhbGciOiJ...
.
Give that a try and let me know if it resolves the problem.
Thanks, this was my fault, sorrt for wasting your time: I was just pasting from Fiddler and I had not noticed the token= prefix. I think we are really in need of a simple, yet complete solution for using JWT with an ASP.NET backend, keep up the good work, hope this will be soon production-ready :)
@Myrmex No problems, closing the issue :)
Re. using this in production - I'm using the strategies shown here in a web app that will soon be in production, this repo is intended to show the strategy needed rather than to create a production-ready implementation itself (as the changes needed to make it into a production-ready implementation will depend on how you're identifying your users, whether you're creating a REST API or a web application, etc etc, all of which would be different for almost everyone using this).
Hello, I'm trying to play with this project (VS2015, ASPvNext RC), but I'm not able to access the secured API. Whenever I try a
GET http://localhost:53129/api/value/1
I get the errorNo SecurityTokenValidator available for token
:Here is what I did:
GET http://localhost:53129/api/values
, which returns some JSON code.Yet, I always get the error quoted above. Any suggestion?