Open Closed

Custom role claims not saving #696


User avatar
0
michael.sudnik created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.0.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

The role claims are not being saved as the UpdateClaimsAsync() method within the IdentityRoleAppService class is missing a await RoleRepository.UpdateAsync(role); at the end.

I was able to fix it by replacing the IdentityRoleAppService and appending the missing line in the overriden method.


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Thanks for you reporting, I will check it out.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We have fixed this problem. you can wait for the 4.1 stable release.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11