简体   繁体   English

OAuth 会话操作中的帐户链接

[英]OAuth account linking in conversational actions

I have created a conversational action in Actions Builder that uses account linking via OAuth (not Google sign in).我在 Actions Builder 中创建了一个会话操作,该操作使用通过 OAuth(不是 Google 登录)进行的帐户链接。 Functionally, everything is working well.从功能上讲,一切运行良好。

The only issue I noticed is that when I try to link accounts using anything except a phone in the simulator, I get a response telling me to link accounts using the Google Home app.我注意到的唯一问题是,当我尝试在模拟器中使用除手机以外的任何设备关联帐户时,我收到一条回复,告诉我使用 Google Home 应用程序关联帐户。 Since my action is a conversational action and not a smart home action, my action will never be found in the Google Home app.由于我的操作是会话操作而不是智能家居操作,因此我的操作永远不会在 Google Home 应用中找到。

I have confirmed that this kind of account linking is supported with conversational actions (via docs as well as Actions on Google support).我已经确认会话操作支持这种帐户链接(通过文档以及 Google 支持上的操作)。 What support could not answer for me is what I can do about this, they directed me here for help.支持无法为我回答的是我能做些什么,他们指示我在这里寻求帮助。

So my question is, how is account linking handled for conversational actions on non-phone devices (eg smart speaker)?所以我的问题是,如何为非电话设备(例如智能扬声器)上的会话操作处理帐户链接? Does it simply not run at all, or do I have to do something to remove these Google Home prompts?它根本不运行,还是我必须做一些事情来删除这些 Google Home 提示?

Thanks谢谢

If the Action is running on a device type that does not support a web browser then the authentication step is not going to work.如果操作在不支持 web 浏览器设备类型上运行,则身份验证步骤将不起作用。 If you have not signed in before, the operation will fail.如果您之前没有登录,操作将失败。 Though if you have signed in already, any device will be able to retrieve your access token.虽然如果您已经登录,任何设备都可以检索您的访问令牌。

The way to do this would be to handle cases for a non-authenticated device that cannot be authenticated.这样做的方法是处理无法通过身份验证的非身份验证设备的情况。 This may mean providing some part of your Action that can run in these conditions.这可能意味着提供可以在这些条件下运行的操作的某些部分。 Alternately, you'll need to inform people that they'll first need to use their phone to perform account linking.或者,您需要通知人们他们首先需要使用手机来执行帐户关联。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM