阅读背景:

使用Web Api 2.1和Owin的用户(IPrincipal)无法使用ApiController的构造函数。

来源:互联网 

I am Using Web Api 2.1 with Asp.Net Identity 2. I am trying to get the authenticated User on my ApiController's constructor (I am using AutoFac to inject my dependencies), but the User shows as not authenticated when the constructor is called.I am Using Web Api 2.1 with Asp.Net Identity 2.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: