How can I prevent other iOS/Android apps from using my RESTful API?

前端 未结 3 1983
天涯浪人
天涯浪人 2021-02-09 07:19

I have a pre-existing iOS & Android app, that I\'m making an update for that includes a RESTful services API and Facebook login for user authentication. The general flow of

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-09 08:01

    The de facto solution for authentication on restful APIs like Twitter and Facebook use is the OAuth mechanism. You can find more details here: http://en.wikipedia.org/wiki/OAuth.

    OAuth is supported from the majority of the languages with external libraries. On Android for example there is the https://github.com/wuman/android-oauth-client library.

提交回复
热议问题