如何自动添加 Quickbooks 重定向 uri?

How to automatically add Quickbooks redirect uri?

我们如何使用某些 API 在 Quickbooks 身份验证中自动添加重定向 URI?

编辑:- 就我而言,我的网站具有根据一些随机关键字创建子域的功能。假设如果我的网站是 facebook.com 并且有人在其中创建了自己的公司

Company name                Website

 1. tata                    tata.facebook.com
 2. tesla                   tesla.facebook.com

所以我想在创建公司后立即将网站 url 名称添加到重定向 URI。我不想手动添加它。

How can we automatically add the redirect URI in the Quickbooks auth using some API?

你不能。

In my case, my website has functionality of creating sub-domain on the basis of some random keywords.

您将无法执行此操作。

处理此问题的更好方法是拥有一个专用于新连接的 OAuth 握手的域,并始终使用该域。您可以使用 OAuth 的 state 参数来跟踪谁在连接,这样您就知道在 OAuth 重定向后将它们反弹回的正确子域。

Intuit(和大多数其他云提供商)不允许使用通配符或动态域,因为这样做存在一些重大的安全风险: