Open Closed

Microservice Uygulama Web de menu login olunmasına rağmen menuler gorunmuyor. #10109


User avatar
0
unlem created

admin info@unlemsigorta.com.tr Roles: admin Claims: sub=3a1d9a86-39e2-1d31-514c-719291ec2649 AspNet.Identity.SecurityStamp=ZO5Q62PHYMHQVKN2PYXZ2CEUCVCPMDR7 session_id=fd208b1e-c8e7-44bf-949c-a659142aac9d unique_name=admin amr=pwd preferred_username=admin given_name=admin role=admin email=info@unlemsigorta.com.tr email_verified=False phone_number_verified=False admin kullanıcı ile login olmama rağmen web uygulamasında menüler gorunmuyor.

web uygulamasının logu; Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.PageFeedback.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: Forms.Form [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.PageFeedback.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: Forms.Form [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.PageFeedback.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: Forms.Form [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.PageFeedback.SettingManagement [22:31:55 INF] Authorization failed. These requirements were not met: PermissionRequirement: Forms.Form


6 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    1. Solution Your logs show the menu items are protected by permissions but your logged-in user doesn’t have them granted. In ABP, menu items are commonly added with requiredPermissionName. If the user lacks that permission, the item is hidden and you’ll see “Authorization failed … PermissionRequirement: X” in logs, as you have (CmsKit.SettingManagement, CmsKit.PageFeedback.SettingManagement, Forms.Form).

    Fix it by granting the required permissions to the user/role, or by removing the permission requirements from menu items if you want them always visible.

    Step-by-step (recommended)

    • Ensure Permission Management is reachable in your app (it is included by default in the standard app templates).
    • Log in as admin (host or the related tenant).
    • Open Administration -> Identity -> Roles -> edit the Admin role -> Permissions.
    • Search and grant the missing permissions you see in the logs:
      • CmsKit.SettingManagement
      • CmsKit.PageFeedback.SettingManagement
      • Forms.Form (and other Forms.* if needed)
    • Save, then log out and log back in (or refresh) to reload claims/permissions.
    • If you use multi-tenancy, grant them on the correct side:
      • Host-side admin: switch to Host and grant on host.
      • Tenant-side admin: switch to the specific tenant and grant on tenant.
    • In microservice apps, ensure the Web (UI) application is calling the correct Auth/Identity endpoints and the Permission Management module is installed/enabled in the same tenant/side.

    Optional checks

    • Verify menu contributors use requiredPermissionName matching those permissions. Example:
    context.Menu.AddItem(
          new ApplicationMenuItem(
              "CmsKit.Settings",
              L["Menu:CmsSettings"],
              url: "/CmsKit/Settings",
              icon: "fa fa-cog",
              requiredPermissionName: CmsKitPermissions.SettingManagement
          )
      );
    

    If requiredPermissionName is set, the user must have that permission.

    • If you seed permissions by code, confirm the seeder actually runs for the current tenant/side and grants these permissions to the Admin role:
    await _permissionManager.SetForRoleAsync("admin", CmsKitPermissions.SettingManagement, true);
      await _permissionManager.SetForRoleAsync("admin", CmsKitPermissions.PageFeedback.SettingManagement, true);
      await _permissionManager.SetForRoleAsync("admin", "Forms.Form", true);
    
    • If you recently enabled modules (CmsKit, Forms), run DbMigrator for new permissions and ensure their packages/modules are added to the Web and HttpApi services, and that permission definitions appear under Permission Management UI.
    • Clear/refresh caches:
      • Redis/Dist cache if used.
      • Sign out/in to refresh the authentication ticket.
    1. Sources
    • https://abp.io/docs/latest/modules/cms-kit

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    unlem created

    Admin ile login oluyorum.

    Mesela AbpPermissionGrants tablomda 3a1d9a90-5a1e-95b6-8831-74fdacc45837 Forms.Form R admin bu şekilde tanımlı neden admin ile grant olamıyorum

  • User Avatar
    0
    unlem created

    Admin ile login oluyorum.

    Mesela AbpPermissionGrants tablomda 3a1d9a90-5a1e-95b6-8831-74fdacc45837 Forms.Form R admin bu şekilde tanımlı neden admin ile grant olamıyorum

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to grant all permissions to your admin role?

    Thanks.

  • User Avatar
    0
    unlem created

    yes I can All role granted and same app work in local successfully for example one granted role 3a1d9a90-5a1e-95b6-8831-74fdacc45837 Forms.Form R admin

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, I think your problem has been resolved, right?

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.