Securing php api to use in android application

前端 未结 7 634
余生分开走
余生分开走 2021-01-31 18:40

I am newbie to android development. I am using android studio for developing an application. Things i have done

  1. Created a DB with two ta
相关标签:
7条回答
  • 2021-01-31 19:26

    To secure your APIs, you need a mechanism to detect that the request to the api is made from a trusted source. Many frameworks come with this feature by default.

    However you can just use JSON Web Tokens (jwt) with PHP to add authorization to your api requests

    Learn about token based authentication from this page.

    Check out this simple tutorial on how to secure your PHP api endpoints with JWT.

    If you need even more security you might want to add OAuth provider service to your API. check out this post on how to write OAuth provider in PHP

    0 讨论(0)
提交回复
热议问题