I am using QuickStart UI for Identity Server to login users from multiple mvc clients. The users then have the ability to switch their role based on a dropdown using userManager.AddToRoleAsync(roleName). I would like to refresh the cookie and use User.IsInRole() without forcing the user to log out.
Things I have tried:
- Setting the Cookie's ExpireTimeSpan and Max age to 1 second (This works but I would like to use this to log out users after 20 minutes of inactivity.
- Setting UpdateAccesstokenClaisOnrefresh to true and requesting a refresh token (Does not work)
- Updating the security stamp (Does not work)