Calling web service from application only
I am working on a game app and I want users to be able to record their score on my database so I could keep track of high scores. How do I restrict the web service to only my application? If I use password anyone can reverse engin开发者_StackOverflow社区eer app and see password.
only store the database password on your server. Use authentication/authorization from the app to your server via https to submit the data to the server. The server would then insert into the db. There are 3 tiers here
The client apps. makes http requests to
The server app. does db inserts to
The database.
精彩评论