Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 912
Wavel Avatar asked Jan 05 '15 22:01

Wavel


1 Answers

That was easier than I thought.

Override CheckPasswordAsync in UserManager.

like image 82
Wavel Avatar answered Oct 18 '22 00:10

Wavel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!