关于[Useful ClaimsPrincipal extension methods I use in my projects]的摘要:
To obtain information about the current user in an ASP.NET Core application, you can look at the claims on the User property of the current HttpContext. These claims give you access to information such as the user’s ID, email address, roles, and whatever other information about the user is stored in these claims.
原文地址: https://www.jerriepelser.com/blog/useful-claimsprincipal-extension-methods/