简体   繁体   English

Google Action,帐户关联:身份验证后插入代码

[英]Google Action, account linking: Insert a code after authentication

I've implemented Account linking via Auth0 for my Google Action. 我已经为我的Google Action实现了通过Auth0进行帐户关联。 It works, but I need the user to insert a specific code just after the authentication, and have this code sent back to the action as variable. 它可以工作,但是我需要用户在身份验证之后插入特定的代码,并将此代码作为变量发送回操作。 How can I manage this task? 如何管理此任务?

I'm developing the action in Dialogflow. 我正在Dialogflow中开发动作。 The authentication works. 身份验证有效。

The short answer is no. 最简洁的答案是不。 There is no part of the OAuth protocol that allows additional payload that has meaningful information. OAuth协议的任何部分都不允许包含有效信息的其他有效负载。

However, you should be able to do this through Auth0 itself. 但是,您应该能够通过Auth0本身执行此操作。 You can add custom claims that are stored as part of the userinfo. 您可以添加存储在userinfo中的自定义声明 Then, when you get the auth token from your action, use this auth token to get the user profile (including the code) from Auth0. 然后,当您从操作中获取身份验证令牌时,请使用此身份验证令牌从Auth0 获取用户配置文件 (包括代码)。

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

相关问题 Google Action Builder 帐户链接与 Node js 中的自定义身份验证 - Google Action Builder Account Linking with custom authentication in Node js Google 操作帐户链接令牌端点参数 - Google Action Account Linking token endpoint parameters 在对话流中使用谷歌帐户链接后继续对话 - Continuing a conversation after account linking using google in dialogflow 对谷歌帐户链接的操作返回错误 - Actions on google account linking returns error Actions On Google 的帐户关联响应在印地语中不正确 - Account Linking response for Actions On Google not correct in Hindi 从google-calendar-API获取详细信息而无需帐户链接 - fetch details from google-calendar-API without account linking actions-on-google 帐户链接登录状态始终为“错误” - actions-on-google Account Linking Signin status is "ERROR" always Firebase帐户关联错误 - Firebase account linking error Google OAuth2服务帐户HTTP / REST身份验证 - Google OAuth2 Service Account HTTP/REST Authentication 使用服务帐户的Google身份验证失败(node.js) - Google Authentication with Service Account fails (node.js)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM