【问题标题】:Google Action Builder Account LinkingGoogle Action Builder 帐号关联
【发布时间】:2020-08-04 17:01:52
【问题描述】:

我正在使用全新的 Google Action Builder,但我遇到了帐户关联问题(OAuth 和 Google 登录和隐式流程): 执行帐户链接后,Google 应将 access_token 附加到 conv 参数,但我在任何 webhook 请求中都找不到它。我确信帐户链接执行良好,因为在设置中我看到取消链接按钮,在每个请求中我看到"accountLinkingStatus": "LINKED""verificationStatus": "VERIFIED"。 我还在 oauthplayground 上测试了流程,并在流程结束时收到了一个 access_token。问题可能隐藏在哪里?

【问题讨论】:

    标签: actions-on-google account-linking actions-builder


    【解决方案1】:

    客户端库将从授权标头中提取凭据,并将值保存在 user.params 中。

    如果传递了客户端 ID,则验证 authHeader 并将其解码为 GSI 令牌。

    conv.user.params.tokenPayload

    如果没有,则从标头中提取令牌值(如果标头包含不记名令牌)。

    conv.user.params.bearerToken

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-31
      • 2012-11-27
      • 2017-09-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多