I'm doing a project in a api, and I need to access from the ApiController class to:
var result = await SignInManager.PasswordSignInAsync (model.UserName,model.Password...
but I have access neither
HttpContext.Current.GetOwinContext().GetUserManager<ApplicationUserManager>()
nor
Request.GetOwinContext().GetUserManager<ApplicationUserManager>();
Basically I need to check that the username and password are correct.
EDIT: I have reference to microsoft.owin.host.SystemWeb
and in ConfigureAuth app.CreatePerOwinContext();
I've already solved, were missing from usings;
thank you everyone.