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

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -