关于[Adding claims to existing identity]的摘要:
During moving one system from classic ASP.NET MVC to ASP.NET Core I faced an interesting challenge. Although access to system is based on Active Directory there is separate role management based on classic membership and roles providers. There are reasons why AD is not used for role management and I cannot change it. ASP.NET Core uses claims-based authentication and I needed to find a way to add role claims to authenticated identity. Here’s the solution.
原文地址: https://gunnarpeipman.com/aspnet-core-adding-claims-to-existing-identity/