I have a .net core application using Identity Server 4 that creates numerous non-standard claims for authorization in the application. Some of those non-standard claims have a direct impact on how the application behaves and are set by a database. If the user performs some action on the UI I will need to reset those claims.
So my question, using the hybrid flow if I do the renew tokens found here https://github.com/IdentityServer/IdentityServer4.Samples/blob/release/Clients/src/MvcHybrid/Controllers/HomeController.cs, will that call the user info endpoint to get an updated list of claims? So more or less, resetting the login without having to log out and log back in. Or will I need to update the Claims principal manually?
I would much rather no have to update the principal manually and let IS4 do the heavy lifting.
EDIT
Using the code above I was able to refresh the tokens and I see that it's calling IS4 and resetting the claims in the IS4 code, but it's not getting the user profile which isn't actually updating the claims on the client side. I cannot save the claims in the token since the token becomes too large for log out so I have the "GetClaimsFromUserInfoEndpoint" enabled on the options. Anyway of programmatically resetting the UserProfile?