In this article, you will learn how to claimsPrincipal in ASP.Net core MVC web app
In this article, ClaimsPrincipal.Current isn't set in ASP.NET Core. So, it uses dependency injection to provide dependencies such as the current user's identity.
There are several options for retrieving the current authenticated user's ClaimsPrincipal:
ClaimsPrincipal in ASP.Net core MVC web app