c# - Manually validating ASP.NET Identity user account -



c# - Manually validating ASP.NET Identity user account -

i have asp.net mvc 5 site uses asp.net identity (pre 2.0), site comes webapi. have windows phone app consume services site, want validate user account; wp app inquire username , password send them server validated. now, i'd employ same hashing technique asp.net identity using on phone, can send hash, , compare on other side, not sure hash uses, plus, seems using sort of salt, because have couple of test user accounts same password, have different hashes, maybe it's securitystamp? prefer not send plain text password on wire, i'm pretty sure that's huge no no.

how should approach issue?

thank you

i won't steal thunder of first-class existing answer explains how asp.net identity performing hashing under hood.

that beingness said, problem much easier think. can send "plain text" password on wire, but need sending on ssl/tls! how websites send credentials. entire http request encrypted while going on wire. easy solution certificate , stand web server ssl/tls.

to reply question (even though don't believe right solution), while looks can source how hashing beingness performed, wouldn't recommend implementing on client side. reason beingness if upgrade newer version of asp.net identity? need track downwards source code , update hashing method client side application. how users new hashing method on device? need upgrade latest version of application. you're stuck users can't authenticate until upgrade application because server-side version has been upgraded.

c# asp.net-mvc asp.net-web-api asp.net-identity

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -