我必须为组织应用程序建立一个授权系统。他们要求我在其应用中使用“角色/权限”概念...
我希望将Role Claim授予某种权限,并将用户添加到角色时,我希望用户获得所有Role Claims;但在某些情况下,我希望能够从用户声明列表中删除roleClaim / permission ...
好让我解释一下,我想要这样的东西:
Role RoleClaim ( I intend to use it as Role Permission )
-----------------------------------------------------------------------
WelfareDep IssueNewRequest
WelfareDep AcceptRequest
WelfareDep RejectRequest
并为用户提供类似的内容:
User Role UserClaim ( User Permission )
--------------------------------------------------------------------------
Jhon WelfareDep IssueNewRequest/AcceptRequest/RejectRequest
Mark WelfareDep IssueNewRequest/AcceptRequest/RejectRequest
Rose WelfareDep IssueNewRequest
Joe WelfareDep AcceptRequest/RejectRequest
但据我搜索,角色声明自动添加到具有....角色的userClaim中。
我想要一个UI视图和控制器,将哪个角色Claim添加到用户(用户声明)...
我该怎么办?