Associate a Google Assistant with Firebase Auth

I am trying to connect a Google Assistant application using DialogFlow (Api.AI) with Firebase Auth. My application uses Firebase Auth to support user accounts and a real-time database for storing data. I would like to be able to make changes to user data through the Google Assistant, possibly using something like a cloud function. To make any changes to the user through the Google Assistant, I need to link the Google Assistant user account to the Firebase Auth account. The current mechanism seems to use the OAuth thread registered here .

The question I have is the best way to achieve this? Do I need to configure my own OAuth server? There is a lot of documentation on the Google cloud website about OAuth, but it all seems to be related to using OAuth to access the Google APIs, and I cannot see an easy way to put this binding mechanism in GCP.

There is this question, which is pretty close, but the difference is that I do not have an external API, I just want to authenticate my user and be able to change my data in a real-time database.

Thank you for your help!

+8
oauth firebase-authentication google-cloud-functions actions-on-google api-ai
source share
1 answer

Here is an example: https://github.com/malikasinger1/Quiz-Assistant I did it myself, following the best recommendations, feel free to comment if you don’t understand something.

+1
source share

All Articles