Overview of the architecture (unfortunately I am not able to change this in any regard):
I created a custom principal (inheriting IPrincipal) and custom authorize attribute (inheriting AuthorizeAttribute) to do a couple of unique checks required of this system (similar to checking for roles). Every public controller action, with the exception of those in the "LoginController", have my custom Authorize attribute.
In my controller action to handle login request, which has the "AllowAnonymous" attribute, I post a request to the data service on Machine B and it just hangs. I've debugged the service and I can see that it receives the requests, does its work, and sends a response. The site on Machine A doesn't appear to receive the response.
Here is what I have tried to do so far:
So if you have any suggestions of other things to try, or if you would like more detail (I unfortunately cannot share code) I will do my best to provide it.
Thanks
The issue here was that there were nested async calls. When i move the async call to the data service out of the async method that was calling it it works just fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.