简体   繁体   English

Actions on Google - 要求用户在令牌过期前重新链接他们的帐户

[英]Actions on Google - Ask user to re link their account before token expires

Our agent uses OAuth account linking with Authentication code.我们的代理使用 OAuth 帐户链接验证码。 We would like to suggest to the user to relink their account when the consent they've given is about to expire.我们想建议用户在他们给予的同意即将到期时重新链接他们的帐户。

To achieve that, we first invalidate the consent on our auth server and then proceed to respond with a new SignIn() .为实现这一点,我们首先使我们的身份验证服务器上的同意无效,然后继续使用new SignIn()进行响应。 However, the agent doesn't immediately recognise that the token is invalid, so the new SignIn() doesn't force the user to link their account again and does nothing.但是,代理不会立即识别出令牌无效,因此new SignIn()不会强制用户再次链接他们的帐户并且什么也不做。

Is there a way to force the agent to do the account linking process?有没有办法强制代理进行帐户链接过程?

Note: Returning a 401 response ( UnauthorisedError ) is not really an option because we don't want the conversation to end.注意:返回 401 响应( UnauthorisedError )并不是一个真正的选择,因为我们不希望对话结束。 Instead we want the user to continue his conversation after their account is linked.相反,我们希望用户在链接他们的帐户后继续他的对话。

The platform does not have a way to perform reauthentication inline.该平台无法以内联方式执行重新身份验证。 To force the agent to perform account linking, you will need to return a 401 UnauthorizedError and the user will sign in again the next time they invoke the action.要强制代理执行帐户链接,您需要返回 401 UnauthorizedError并且用户将在下次调用该操作时再次登录。

暂无
暂无

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

相关问题 Firebase 谷歌登录不要求用户密码 - Firebase Google Login does not ask for user passwords 似乎无法使用服务帐户在 python 中模拟用户或无法通过 google oauth2 获取令牌 - Can't seem to impersonate user or not getting token with google oauth2 in python using a service account google-github-actions/auth 失败,没有注入 $ACTIONS_ID_TOKEN_REQUEST_TOKEN 或 $ACTIONS_ID_TOKEN_REQUEST_URL - google-github-actions/auth failed with did not inject $ACTIONS_ID_TOKEN_REQUEST_TOKEN or $ACTIONS_ID_TOKEN_REQUEST_URL Flutter:将 Facebook 帐户与现有用户关联 - Flutter: Link Facebook account with existing user NodeJS 谷歌云服务帐户不记名令牌 - NodeJS Google Cloud Service Account Bearer Token actions-on-google 帐户链接登录状态始终为“错误” - actions-on-google Account Linking Signin status is "ERROR" always 无论如何要从 Header 中的 Actions on Google 获取访问令牌? - Anyway to obtain the acces token from Actions on Google in Header? 防止 Google Cloud Storage 帐户所有者对用户存储桶对象的可见性 - Preventing Google Cloud Storage account owner visibility into user bucket objects 没有组织的 Google Cloud:如何为另一个用户授予计费帐户的计费帐户管理员角色 - Google Cloud, without organization: How to give another user Billing Account Administrator role for a billing account 为什么firebase authUI现在不能用google账号登录,以前可以登录 - Why firebase authUI can't use google account login now, but can login before
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM