security - Secure REST service to consume only by specific android app -
my server exposes number of rest services, want secure web services such way can consumed android apps owned me.
essentially both client (android app) , server developed me; , need expose rest service android app.
i thought of number ways securing rest service like
- using username/password based authentication
- jwt token
- signature based verification
- etc.
in cases android app should store password in app; in case hacker can decompile app , password.
how can secure rest can accessed android app?
edit: client app doesn't require authentication user
you can't. authentication done sharing secret between client , server. if put secret in app, decompiled , stolen (if cares enough to). if give secret person (like password), can authenticate person- person can type fake app. when you're dealing unknown hardware not under control, there's no way assure app , not else's- can assure user authorized.
Comments
Post a Comment