Search code examples
asp.net-identity-2

Writing a custom IUserPasswordStore and SignInManager.PasswordSignInAsync in Identity 2.1


Building a custom IUserPasswordStore to connect to a legacy system's username/password table. The password is hashed with custom code in the table so I need to write custom code for PasswordSignInAsync.

Do I need to override PasswordSignInAsync or is there a method I can provide that just does the hashing of the password? If I do override the entire PasswordSignInAsync is there sample code somewhere showing me what needs to be done in the method?


Solution

  • That was easier than I thought.

    Override CheckPasswordAsync in UserManager.