My problem is very similar to this question here. I have an AuthenticationService
class that makes an HttpClient
PostAsync()
and never
In case someone comes and needs to see code I just change the controller to something like this:
/***
*** Added async and Task
****/
public async Task Signin(User user)
{
//no token needed - we are requesting one
// added await and remove .Result()
Token token = await _authenticationService.Authenticate(user, ApiUrls.Signin);
return RedirectToAction("Index", "Dashboard", token.user);
}
Thank you all for your quick response!