简体   繁体   English

Firebase 身份验证和谷歌云翻译

[英]Firebase Authentication and Google Cloud Translate

I have Firebase Authentication integrated in IOS app and I would like to use Google Cloud Platform - Translate.我在 IOS 应用程序中集成了 Firebase 身份验证,我想使用 Google Cloud Platform - 翻译。 There are bunch of questions that I am trying to find -我试图找到很多问题 -

How do I access Google Cloud Platform directly from IOS app?如何直接从 IOS 应用程序访问 Google Cloud Platform?

Firebase Authentication is already integrated in Google Cloud Platform but does it have access to GC Translate? Firebase 身份验证已集成在 Google Cloud Platform 中,但它可以访问 GC 翻译吗?

Do we need to grant some privs for Firebase Authentication to access GC Translate?我们是否需要为 Firebase 身份验证授予一些权限才能访问 GC 翻译?

Do I need to use Oauth2 authentication again to access GC Translate?我是否需要再次使用 Oauth2 身份验证才能访问 GC Translate? (That doesn't make sense). (这没有意义)。

The scenario that I'm looking for - The user signs in Firebase pre-UI built and then go in the note and types "Hello" then click translate then the request will be sent to GC Translate to get the translated text - "Hola" to comes up.我正在寻找的场景 - 用户登录 Firebase 预先构建的 UI,然后在注释中输入 go 并输入“Hello”,然后单击翻译,然后请求将被发送到 GC Translate 以获取翻译文本 - “Hola”来。

How do I access Google Cloud Platform directly from IOS app?如何直接从 IOS 应用程序访问 Google Cloud Platform?

You typically don't do this directly, as Google Cloud Translate requires specifying a server-side API key when you call it.您通常不会直接执行此操作,因为 Google Cloud Translate 需要在您调用它时指定服务器端 API 键。 If that key ends up in the hands of your users, they can call the API on your behalf, and you end up paying for it.如果该密钥最终落入您的用户手中,他们可以代表您致电 API,您最终需要为此付费。

Firebase Authentication is already integrated in Google Cloud Platform but does it have access to GC Translate? Firebase 身份验证已集成在 Google Cloud Platform 中,但它可以访问 GC 翻译吗?

There is no direct integration from Firebase to Google Cloud Translate.从 Firebase 到 Google Cloud Translate 没有直接集成。 The closest equivalent service in Firebase would be ML Kit's translation models . Firebase 中最接近的等效服务是ML Kit 的翻译模型


The usual scenario is that you implement your own server-side endpoint that calls Google Cloud Translate for you.通常的情况是您实现自己的服务器端端点,该端点为您调用 Google Cloud Translate。 You can run this endpoint on a server you control, or on Cloud Functions.您可以在您控制的服务器或 Cloud Functions 上运行此端点。 Then you call this endpoint from within your application.然后,您从应用程序中调用此端点。

This approach keeps your API key secure on the server, and allows you to control access in the code of your endpoint.这种方法可确保您的 API 密钥在服务器上的安全,并允许您控制端点代码中的访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有身份验证,例如在Google Firebase中,甚至在Google Cloud平台中? - Is there authentication, as in Google Firebase even in the Google Cloud platform? 来自Google Cloud Endpoint的Firebase身份验证 - Firebase authentication from Google Cloud Endpoint 具有Firebase和多个云项目的Android Google身份验证 - Android Google Authentication With Firebase And Multiple Cloud Projects 带有google-translate-api的Firebase Cloud函数GET Request - Firebase Cloud function GET Request with google-translate-api 使用 JWT 和 Google Cloud 函数对 Realm Cloud 进行 Firebase 身份验证 - Firebase Authentication for Realm Cloud using JWT and a Google Cloud Function 使用 Firebase 和 Cloud Firestore 进行身份验证 - Authentication with Firebase and Cloud Firestore 如何翻译来自 Firebase 身份验证的错误代码? - how to translate the error code from Firebase Authentication? Firebase身份验证触发器的云功能 - Cloud Functions for Firebase Authentication trigger Firebase身份验证与Cloud SQL混合 - Firebase Authentication mixed with cloud sql Firebase Cloud Messaging身份验证是否必要? - Is Firebase Cloud Messaging authentication necessary?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM