问题描述
我正在尝试使用DialogFlow(Api.AI)和Firebase Auth连接Google Assistant应用。我的应用程序使用Firebase Auth维护用户帐户,并使用实时数据库存储数据。我希望能够通过Google助手对用户的数据进行更改,也许可以使用云功能。为了通过Google Assistant进行用户更改,我需要将用户的Google Assistant帐户与其Firebase Auth帐户相关联。当前的机制似乎使用的是中记录的OAuth流。。 p>
我的问题是,实现此目标的最佳方法是什么?我是否需要设置自定义OAuth服务器?谷歌的云网站上有很多关于OAuth的文档,但它们似乎都与使用OAuth访问Google的API有关,我真的看不到在GCP中托管此链接机制的简单方法。
有这个问题非常接近,但是我的区别是我没有外部API,我只想对我的用户进行身份验证,并能够修改他们在实时数据库中的数据。
谢谢您的帮助!
下面是一个示例:
i自己做到了以下最佳习惯,如果您不了解某些内容,
可以随时发表评论。
I am attempting to connect a Google Assistant app using DialogFlow(Api.AI) with Firebase Auth. My App uses Firebase Auth to maintain user accounts and the realtime database to store data. I would like to be able to make changes to a user's data through the Google Assistant, maybe using something like a cloud function. In order to make any user changes through Google Assistant, I need to link the user's Google Assistant account with their Firebase Auth account. The current mechanism appears to be using an OAuth flow documented here.
The question I have is, what is the best way to accomplish this? Do I need to set up a custom OAuth server? There is a lot of documentation on Google's cloud website about OAuth, but it all appears to be related to using OAuth to access Google's APIs, and I can't really see a simple way to host this linking mechanism in GCP.
There is this question that is pretty close, but the difference I have is that I don't have an external API, I just want to authenticate my user and be able to modify their data in the realtime database.
Thank you for your help!
here is an example: https://github.com/malikasinger1/Quiz-Assistanti have done it myself with following best practices,feel free to comment if you don't understand something.
这篇关于将Google Assistant与Firebase Auth关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!