Cloud Endpoints with Firebase Authentication

拈花ヽ惹草 提交于 2019-12-13 17:41:13

问题


What I am trying to accomplish is I want to limit the use of the web service running on Google App Engine to my app users that login with Firebase Auth.

How can I add security rules to the openAPI specification to allow users to request only information of their uuid? So users will just be able to use the web service to get the information about their uuids, if they are logged in to Firebase Auth with that uuid


回答1:


You'd have to pass along the ID token of your user from the client app to your server over a secure connection. Then on your server you can verify that ID token, and customize data access on the user's identity.

For more on this, see the Firebase documentation on verifying ID tokens.



来源:https://stackoverflow.com/questions/49948459/cloud-endpoints-with-firebase-authentication

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