カスタム AuthorizeAttibute (グローバルに登録) 内で、コントローラーのタイプと呼び出されるアクションに基づいて承認を適用する際に、セキュリティ上の問題や落とし穴の可能性はありますか?
例 (実際のコードではない)
string controllerFullName=_filterContext.ActionDescriptor.ControllerDescriptor.ControllerType.FullName;
string minRequiredRole = GetControllerMinRequiredRole(controllerFullName);
if(User.MeetsRoleRequirement(minRequiredRole))
{
//give access
}
else
{
//no you're not allowed
}