This project has moved and is read-only. For the latest updates, please go here.

401 on OAUTH with OWIN

Nov 11, 2016 at 10:44 AM
Edited Nov 11, 2016 at 10:44 AM
I have a problem mit OWIN and OAuth described here.

I have create a OAuth Authentication using the guide from Taiseer Joudeh. I have created an endpoint /token to make the authentication. It works and I revice a bearer token. But if I use the access token in my header of the next call of a enpoint that has the AuthorizeAttribute I alwayse recive a Unauthorized error. Also if I take a look in what is in the CurrentPrincipal of the current Thread it's always a GenericPrincipal.

Has anyone a idea what can be the problem?