GAE User API with OAuth2

泄露秘密 提交于 2019-12-06 15:06:20

Here are some points:

  1. It is important that you have authentication at both the levels. This is a good practice and does not leave your functionality open for execution without any authentication mechanism.

  2. When you are doing the authentication on the client side, the whole authentication layer passes this User object to your Google Cloud Endpoints code. So, it is good if you could inject the User object in your Cloud Endpoints method to extract out the information of the user and do your own authorization if needed.

  3. In summary, you are not really doing an authentication again at the Server side if you notice. You are only checking if the authentication is done or not and then proceeding forward.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!