[英]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.