Writing a custom IUserPasswordStore and SignInManager.PasswordSignInAsync in Identity 2.1

Building a custom IUserPasswordStore to connect to an outdated username / password system. The password is hashed using custom code in the table, so I need to write custom code for PasswordSignInAsync .

Do I need to override PasswordSignInAsync or is there a way I can provide that just does password hashing? If I override the whole PasswordSignInAsync , is there a code example somewhere showing me what needs to be done in the method?

+5
source share
1 answer

It was easier than I thought.

Override CheckPasswordAsync in UserManager .

+14
source

Source: https://habr.com/ru/post/1210425/


All Articles