asp.net - Proper way to authenticate with a web service from Android -
so have asp.net mvc 4 web app behaves pretty web service. client sends request, web service returns json object. i'm point in have authenticate users android app. proper way on client side since no longer have web browser store cookies me authenticate server. ssl taken care of.
have been thinking of several straight forward ways authenticate i'm concerned having security vulnerability might not aware of.
ok me store user credentials (username , password) in sqlite database on android phone app installed, , send credentials along every request server authenticate? (i'm thinking of hashing password before storing in database, of course).
approach not safe? how other apps authenticate services: ebay, facebook , such?
data saved in private storage relatively secure (on non rooted device @ least). include :
- sqlite databases (if not made worldreadable)
- sharedpreferences
if want better integration account manager (e.g. have account listed in device's settings), can write accountauthenticator. see creating custom account type or write own android authenticator. not sure ebay , facebook, that's firefox sync , evernote example do.
Comments
Post a Comment