The summary of both properties in the entity IdentityUser
are in English:
ConcurrencyStamp: A random value that should change whenever the user is persisted to the store.
Translating would be something more or less like this:
A random value that should change whenever a user persists in the repository.
SecurityStamp: A random value that should change whenever users credentials change.
Translating would be something more or less like this:
A random value that should change whenever there are changes in user credentials (Password changed, login removed).
I'm using Dapper instead of EF with Identity and ConcurrencyStamp never updates, so I thought it would be better to understand the purpose of them.
ConcurrencyStamp I was pretty confused, and already the SecurityStamp Digest was able to describe it well. But I was super confused when I came across this answer in SOen .
And what I believed to be a SecurityStamp function is apparently a function of ConcurrencyStamp .
- What are the purpose of these table properties / columns?
- Do I need to do something so that, for example, ConcurrencyStamp performs its function correctly with Dapper? I thought it was necessary after seeing this response using EF .