And everything works fine. But to try and test of the roles are properly set up, I change the ClaimValue to "admin2" in de database. When logging in I would expect to get a 401 unauthorised response, but instead I see that the user being fetched from the Document Store still has the old ClaimValue of "admin".
Any ideas on why the user is not being refreshed?
Update
I grabbed the source code and changed RavenUserStore so that i opens a new IAsyncSession every time FindByNameAsync is called, and that does fetch the user data anew.
Just mentioning in case it helps you to point me in the right direction
You probably haven't used or seen this code in a while, but I have the following issue:
I login with a user that has an "admin" role
Claim
And everything works fine. But to try and test of the roles are properly set up, I change the
ClaimValue
to "admin2" in de database. When logging in I would expect to get a401 unauthorised
response, but instead I see that the user being fetched from the Document Store still has the oldClaimValue
of "admin".Any ideas on why the user is not being refreshed?
Update
I grabbed the source code and changed
RavenUserStore
so that i opens a newIAsyncSession
every timeFindByNameAsync
is called, and that does fetch the user data anew. Just mentioning in case it helps you to point me in the right direction