I am developing an app for Google assistant and I need a suggestion about the authentication of users for my app so that i can manage their data according to their unique id. I am using Firebase as the database and I think that authenticating the user with a Gmail account is the best way to go about it. So is this possible? I'm also taking other suggestions.
2 Answers
Yes - You can authenticate you users in your assistant app. You will need to use the OAuth 2.0 flows and follow these steps: https://developers.google.com/actions/identity/account-linking
Btw, there is a good question and great answer on how to do it here: How to authenticate user with just a Google account on Actions on Google?
(!) One important thing to remember is that are the moment you need to use your own OAuth server and not use providers.

- 2,795
- 1
- 17
- 26
-
@kvk30 I'm not sure what you mean. Can you elaborate a bit? Thx! – Ido Green Aug 29 '17 at 17:12
-
I want details of the user, need to show them in my actions-on-google app. Is there any way to do that feature? – kvk30 Aug 30 '17 at 05:32
You have a couple of options here, depending on your needs.
If all you want to do is track repeat visitors to your Action, then you can use the anonymous userId that is available. This isn't really "authentication" and it certainly isn't a user identity, but if you get the same userId from a session, you know it is the same user that visited before with that userId.
If you already have accounts for your system, then going with Account Linking, as @ido-green has suggested is preferable, although significantly more complicated to setup.

- 49,922
- 7
- 53
- 105