Open Closed

Add/Update CurrentUser Claims #2720


User avatar
0
viswajwalith created

ABP Framework version: v5.1.3

UI type: MVC

DB provider: EF Core / MongoDB

Tiered (MVC) or Identity Server Separated (Angular): yes / Microservice

How to add/update claims to CurrentUser without using 'ClaimsPrincipalContributor'.

ClaimsPrincipalContributor triggers while user login.

We have a requirement to add/update claims based on our custom logic after user logged in. We are adding claims to identity but it is not updating in CurrentUser. Is there any possibility to refresh user to update claims in CurrentUser, or is there any other possibility to get claims added to identity from AppService/Web


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

    hi

    Is there any possibility to refresh user to update claims in CurrentUser

    This seems impossible, you can consider accessing these dynamic values in the cache

  • User Avatar
    0
    viswajwalith created

    hi

    Is there any possibility to refresh user to update claims in CurrentUser

    This seems impossible, you can consider accessing these dynamic values in the cache

    Thanks for the update.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00