0

I have a scenario like ,

When something change on User like CompanyId or User's BirthDay changed , I want to expire or invalid User Token and than generate new token.

How can I do that with ASP.NET Identity Framework.

Thanks.

sercanD
  • 187
  • 1
  • 13
  • Are you referring to the issued access_token? How do you create these tokens? – Tóth Tibor Mar 06 '17 at 08:46
  • Identity creates that for me from this endpoint '../api/token' basic and it goes to OAuthProvider , and there is method for ApplicationUser GenerateUserIdentityAsync these are doing the work. – sercanD Mar 06 '17 at 08:55
  • change the `SecurityStamp` - this will invalidate tokens and cookies – trailmax Mar 06 '17 at 10:55
  • I am using this in WEB API so I dont use OAuthCookieProvider I am using ApplicationOAuthProvider , so that when I update my SecurityStamp this token still valid because it is not going to db to check is SecurityStamp updated. – sercanD Mar 06 '17 at 11:08

0 Answers0