I\'m using the Identity 2.0 framework for user management.
Unfortunately, in my use case an account activation/password reset cannot be done using a direct link, so the
ASP.NET Identity uses the UserTokenProvider of the UserManager to generate and validate the token. Basically it calls:
this.UserTokenProvider.GenerateAsync("Confirmation", this, tUser);
to generate the token and
this.UserTokenProvider.ValidateAsync("Confirmation", token, this, tUser);
to verify it.
So you can implement your own IUserTokenProvider<TUser, TKey> or extend the the default one and set that as UserManager.UserTokenProvider.