OWIN token authentication 400 Bad Request on OPTIONS from browser

后端 未结 5 506
眼角桃花
眼角桃花 2021-02-05 16:22

I am using token authentication for small project based on this article: http://bitoftech.net/2014/06/09/angularjs-token-authentication-using-asp-net-web-api-2-owin-asp-net-iden

5条回答
  •  长情又很酷
    2021-02-05 16:45

    Override this method inside your OAuthAuthorizationServerProvider:

        public override async Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
        {
            context.Validated();
        }
    

提交回复
热议问题