My server exposes number of REST services, I want secure the web services such a way that it can be consumed only by the android apps which is owned by me.
Essentially both client (android app) and server is developed by me; and I need to expose the REST service only to my android app.
I thought of number ways securing the REST service like
- Using username/password based authentication
- JWT token
- Signature based verification
- etc.
in all the cases android app should store the password in app; in that case hacker can easily decompile the app and get the password.
How can I secure my REST which can be accessed only by android app?
EDIT: Client app doesn't require any authentication from user