user3010709
user3010709

Reputation: 1

Connecting Android with Web Server

This has been stumping me for awhile now. I'm looking to connect an Android app to a web server using PHP. How would one go about securing the web server and only allowing Android app users to connect, and locking out browser users and other users that can manipulate headers and regular authorization? How can I differentiate between a legitimate Android user and one acting like Android user?

Upvotes: 0

Views: 63

Answers (1)

KDEx
KDEx

Reputation: 3667

You will probably want to look into mutual authentication. Use the keystore that you use to sign your apk[related]. The client authenticates the server and the server authenticates the client. This way only clients that are signed by you will be able to connect to your server.

Upvotes: 0

Related Questions