【发布时间】:2016-12-26 10:09:28
【问题描述】:
我正在将 Firebase 身份验证集成到我的 Android 应用中。登录成功后,Android App 会调用一些运行在 Google App Engine 上的 Google Cloud Endpoints。
所以我需要将从身份验证收到的 Firebase 令牌传递给 Google Cloud Endpoints。我正在使用以下代码调用端点 (source)
MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(),
new AndroidJsonFactory(), null)
myApiService = builder.build();
myApiService.sayHi(name).execute();
那么如何将令牌转发到我的后端?
【问题讨论】:
标签: android google-app-engine firebase firebase-authentication google-cloud-endpoints