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