简体   繁体   English

谷歌上的操作撤销令牌以允许重新链接

[英]actions-on-google revoke token to allow re linking

I have enabled account linking in my dialogflow application which uses actions-on-google SDK.我在我的 dialogflow 应用程序中启用了帐户链接,该应用程序使用了 actions-on-google SDK。

I need to revoke account linking in some cases.在某些情况下,我需要撤销帐户关联。

I can't find much help around this as to how I can remove linking so that the user has to go again through the account linking process.关于如何删除链接,我找不到太多帮助,以便用户必须通过帐户链接过程再次访问 go。

I tried returning 401 - Unauthorize response however the application crashes and doesn't really clears the stored token.我尝试返回 401 - Unauthorize 响应,但是应用程序崩溃并且并没有真正清除存储的令牌。

Can someone please help?有人可以帮忙吗?

I personally don't have experience with doing unlinking through code because revoking access seems like something you don't want to do for the user in most cases, but this topic about revoking the accessToken for server side app on the Google Identity docs might be what you need.我个人没有通过代码取消链接的经验,因为在大多数情况下,撤销访问权限似乎是您不想为用户做的事情,但是关于撤销 Google 身份文档上服务器端应用程序的 accessToken 的主题可能是你需要什么。

It seems that you can revoke a token by sending a HTTP request to the oAuth services from Google and that should handle the revoking for you.您似乎可以通过向 Google 的 oAuth 服务发送 HTTP 请求来撤销令牌,这应该会为您处理撤销。

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

相关问题 Actions-on-google 图书馆列表和轮播不起作用 - Actions-on-google library List and Carousel not working [dialogflow][actions-on-google] 用于槽填充的复合实体 - [dialogflow][actions-on-google] Composite entities for slot filling DialogFlow actions-on-google:从当前 Intent 调用 Intent - DialogFlow actions-on-google: Call an Intent from a current Intent DialogFlow actions-on-google:后续如何将 expectUserInput 设置为 false - DialogFlow actions-on-google: followup how to set expectUserInput to false Actions on Google - 要求用户在令牌过期前重新链接他们的帐户 - Actions on Google - Ask user to re link their account before token expires Google 上的帐户关联操作 - Account Linking Actions On Google 在 Node.js 上的打字稿文件之间拆分 Actions-on-Google 意图 - Splitting Actions-on-Google intents between typescript files on Node.js 如何使用 actions-on-google 库处理对话流实现中的多个确认事件 - how to handle multiple confirmation events in dialogflow fulfillment using actions-on-google library Actions-On-Google/Dialogflow:在 agentId 的平台响应中找不到 RichResponse 或 SystemIntent - Actions-On-Google/Dialogflow: Could not find a RichResponse or SystemIntent in the platform response for agentId 如何使用 actions-on-google node.js 库处理插槽填充 - how to handle slot filling using actions-on-google node.js library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM