Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GetOwinContext is not working in asp.net core

It always says HttpContext not include the define of GetOwinContext(),I try to download the .net core owin but I don't know how to implement the same function. The code belows can be complied in asp.net 5 .

private IAuthenticationManager AuthenticationManager
{
    get
    {                
        return HttpContext.GetOwinContext().Authentication;
    }
}
like image 411
MapleStory Avatar asked Aug 19 '16 06:08

MapleStory


1 Answers

There is no GetOwinContext() for Asp.Net core. Use HttpContext.Authentication instead.

like image 61
Tratcher Avatar answered Nov 15 '22 13:11

Tratcher