AspNetCore.Identity.MongoDbCore icon indicating copy to clipboard operation
AspNetCore.Identity.MongoDbCore copied to clipboard

explanation services.AddIdentity multi roles

Open stefanodesimone opened this issue 2 years ago • 1 comments

Hi, we have implemented in our solution, but we must have a role chosen if a user has more than one. when the user chooses the role we first retrieve the user we delete the roles except the selected one and sign in. if we stay on the same page for more than a few minutes (about 20/30) we update the user has tuttle role and not just the one selected. Any Ideas? Regards Stefano

stefanodesimone avatar Mar 10 '22 15:03 stefanodesimone

Hi, Are you making sure that the user has to log out / log in for the new roles to be reflected in the claims? Looks like the user could be caching the token? Also, maybe there is a refresh token that has the old claims and is not cleared somewhere ?

alexandre-spieser avatar Mar 16 '22 21:03 alexandre-spieser