Restricting access to server to iPhone app

前端 未结 3 1845
说谎
说谎 2021-01-01 07:38

I\'m building a client/server iPhone game, where I would like to keep third-party clients from accessing the server. This is for two reasons: first, my revenue model is to s

3条回答
  •  温柔的废话
    2021-01-01 07:52

    Have your game users authenticate with their account through OAuth, to authorize them to make game state changes on your server.

    If you can't manage to authenticate users, you'd need to authenticate your game application instance somehow. Having authentication credentials embedded in the binary would be a bad idea as application piracy is prevalent and would render your method highly insecure. My SO question on how to limit Apple iPhone application piracy might be of use to you in other ways.

提交回复
热议问题