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