C# 安全声明值已过时

C# Security Claims Value Outdated

当我使用 System.Security.Claims; 中的 ClaimTypes.Role 时,ClaimTypes 中的所有 URI 都丢失了。
例如 ClaimTypes.Role = http://schemas.microsoft.com/ws/2008/06/identity/claims/role or ClaimTypes.Actor = http://schemas.microsoft.com/ws/2008/06/identity/claims/actor

URI 给出错误

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

有人知道描述移动到哪里了吗?是否可以更新 ClaimTypes 以指向正确的位置?

正在微软网站上查找https://msdn.microsoft.com/en-us/library/system.security.claims.claimtypes.role(v=vs.110).aspx They also give the URI http://schemas.microsoft.com/ws/2008/06/identity/claims/role

不要担心文字,最好的做法是使用ClaimTypes.Role。字符串可以更改以反映日期,但对象不会,因此您不必担心代码重构。