为什么即使用户通过身份验证,ClaimsPrincipal.Current也返回null?

时间:2018-08-19 21:11:16

标签: c# authentication asp.net-core asp.net-core-2.0

在ASP.Net Core 2.0应用程序(带有Angular的SPA)中,当User.Identity.IsAuthenticated返回true时,ClaimsPrincipal.Current始终返回false!

我在另一个不在控制器中使用的项目中需要它。我想念什么?

0 个答案:

没有答案