I have been searching for an hour trying to figure out why this isn\'t working.
I have a ASP.Net MVC 5 application with a WebAPI. I am trying to get Request.GetOwin
This took me forever to find a simple answer: but what I did was use the Get extension of the single instance of the IOwinContext that was instantiated in the startup. So it came out like this:
private readonly IOwinContext _iOwinContext = HttpContext.Current.GetOwinContext();
public ApplicationUserManager UserManager
{
get
{
return _userManager ?? _iOwinContext.Get() ;
}
private set
{
_userManager = value;
}
}