Securing a web service so it can only be called by a specific Android application

前端 未结 3 1737
渐次进展
渐次进展 2021-02-06 06:44

We have a web service that should only be called by a specific Android app. What solutions are there for this problem?

The requirement is to not use authentication at al

3条回答
  •  既然无缘
    2021-02-06 07:11

    If you're absolutely certain this web service will only need to be accessed by authorized applications/devices, go with client-side SSL certificates and restrict access at the server to only clients with authorized certs. This has the bonus feature of forcing SSL at all times so you don't like auth secrets over an open channel. Here's a quick guide for Apache, but you could use nginx too:

    http://it.toolbox.com/blogs/securitymonkey/howto-securing-a-website-with-client-ssl-certificates-11500

提交回复
热议问题