UserManager.FindAsync(username, password) not available in ASP.NET 5 / Identity 3 -


i'm trying upgrade project asp.net 5 / mvc 6.

the usermanager came aspnet.identity used have findasync method pass in username , password. doesn't seem there anymore.

i don't think need signinmanager or authentication i'm using jwt bearer authentication. need check username , password valid before grant access token,

simply use usermanager.findbynameasync() find user object check password:

var user = await _usermanager.findbynameasync(username); if(user!=null && await _usermanager.checkpasswordasync(user, password)) {     // user valid whatever want } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -