Search code examples
asp.net-identity

Microsoft AspNet Identity 2.0.0.0 - Columns purpose


I need some information about purpose db tables.

For example, in table AspNetUsers what is the purpose of the

SecurityStamp or LockoutEndDateUtc columns ? How can I use the columns ?

There is someone that can help me please ?

Thank in advance


Solution

  • On SecurityStamp:

    the primary purpose of the SecurityStamp is to enable sign out everywhere. The basic idea is that whenever something security related is changed on the user, like a password, it is a good idea to automatically invalidate any existing sign in cookies, so if your password/account was previously compromised, the attacker no longer has access. more details in this answer

    LockoutEndDateUtc, set together with LockoutEnabled, will allow locking out the user. more details in this blog post.