How to get UserID from ASP.NET Identity when sending Rest Request
问题 I have an API which uses ASP.NET Identity, it is fairly easy for me to get the UserId once the token has been generated as following HttpContext.Current.User.Identity.GetUserId().ToString()) Now I have an external application which is trying to authenticate using this API but I need the UserId of the user who generated the token When I send a request to http://myapiURL/token I get the following access_token token_type expires_in userName issued expires And when I send a request to get API