Writing a custom IUserPasswordStore and SignInManager.PasswordSignInAsync in Identity 2.1

冷暖自知 提交于 2019-12-10 13:16:24

问题


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?


回答1:


That was easier than I thought.

Override CheckPasswordAsync in UserManager.



来源:https://stackoverflow.com/questions/27789015/writing-a-custom-iuserpasswordstore-and-signinmanager-passwordsigninasync-in-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!