【问题标题】:realmId doesn't come from QBO through the OpenId workflowrealmId 不是通过 OpenId 工作流来自 QBO
【发布时间】:2013-08-15 00:02:55
【问题描述】:

我们正在尝试在我们的应用程序中实现 OpenId 以连接到 QBO。作为示例,我们使用 Intuit 提供的代码

https://code.intuit.com/integration/viewvc/viewvc.cgi/IntuitAnywhere-.NET/HelloIntuitAnywhere/HelloIntuitAnywhere/OpenIdHandler.aspx.cs?root=intuitanywhere&system=exsy1003&view=markup

问题是realmId 为空,基本上它不是从Intuit 登录页面返回到我们的应用程序的。所有其他数据都可以,例如姓名、电子邮件。

我们将属性定义为

fetch.Attributes.Add(new AttributeRequest(
    "http://axschema.org/intuit/realmId", true, 1));

我读到它在 Intuit 中关于设置一些 cookie 的错误。是问题还是我做错了什么?

如果需要,我可以发布更多代码,但这与 Intuit 提供的示例差不多。

【问题讨论】:

    标签: intuit-partner-platform quickbooks-online


    【解决方案1】:


    当客户授权通过 3 legged Oauth 流访问他们的数据时,realmid 将位于您提供的回调 url 的查询字符串上。

    openId 工作流程并不总是导致客户选择 QuickBooks 公司。

    openid流程结束后,调用javascript函数direct connect(),就可以得到上面提到的oauth流程中的realm id

    谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-05
      • 1970-01-01
      • 1970-01-01
      • 2021-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多