Owin Bearer Token Authentication + Authorize controller

后端 未结 4 1525
深忆病人
深忆病人 2020-12-24 13:40

I\'m trying to do authentication with Bearer tokens and owin.

I can issue the token fine using the grant type password and overriding GrantResour

4条回答
  •  [愿得一人]
    2020-12-24 14:32

    A year since this was posted, and I too experienced the same problem.

    As you can see, my bearer token is recognized in the request headers, but my identity is still not be authenticated.

    To fix, the short answer is make sure to configure your OAuth middleware before you configure your WebApi middleware (HttpConfiguration).

提交回复
热议问题