【问题标题】:DocuSign OAuth Callback URL ErrorDocuSign OAuth 回调 URL 错误
【发布时间】:2016-12-16 02:42:24
【问题描述】:

在我在 DocuSign 登录页面上提交电子邮件后,我看到 DocuSign Oauth 的回调 URL 得到更新。 这是我的 OAuth 流程的 URL,它将用户带到 DocuSign(沙盒)登录页面。

https://account-d.docusign.com/oauth/auth?response_type=code&client_id=REST-41b3bb1d-94dc-44e3-b791-4810407b961d&scope=all&redirect_uri=https://localhost&state=https://localhost2/super/fx/oauth-callback.flex?osp=29cad06bee24300015fc6c67f95808d2%26intsys%3Dfe7a908b327570000b21578fac28005b#/username

请注意,回调 URL 有一个“osp”变量,但在电子邮件提交后它会被删除。

https://account-d.docusign.com/username?response_type=code&client_id=REST-41b3bb1d-94dc-44e3-b791-4810407b961d&scope=all&redirect_uri=https%3A%2F%2Flocalhost%2Fcb1&state=https%3A%2F%2Flocalhost2%2Fsuper%2Ffx%2Foauth-callback.flex%3Fosp#/password

【问题讨论】:

  • 您的问题是什么?如果您使用 DocuSign 实施 OAuth,那么您应该遵循 docs.docusign.com 上的文档。
  • 嘿@LarryK,我想了解为什么'osp'变量在OAuth流程的过程中在URL中被剥离以及我们如何防止它。在我看来,一旦用户提交他们的电子邮件,DocuSign 就会对 URL 进行编码,这个问题是否与这个编码过程有关?谢谢

标签: oauth docusignapi


【解决方案1】:

回复:

我想了解为什么在 OAuth 流程的过程中 URL 中的“osp”变量被剥离,以及我们如何防止它。在我看来,一旦用户提交电子邮件,DocuSign 就会对 URL 进行编码,这个问题是否与此编码过程有关?

在 OP 中,发送到 DocuSign 的 OAuth 服务的 url 是:

https://account-d.docusign.com/oauth/auth?response_type=code&client_id=REST-41b3bb1d-94dc-44e3-b791-4810407b961d&scope=all&redirect_uri=https://localhost&state=https://localhost2/super/fx/oauth-callback.flex?osp=29cad06bee24300015fc6c67f95808d2%26intsys%3Dfe7a908b327570000b21578fac28005b#/username

让我们把它分开:

response_type=code
client_id=REST-41b3bb1d-94dc-44e3-b791-4810407b961d
scope=all
redirect_uri=https://localhost
state=https://localhost2/super/fx/oauth-callback.flex?osp=29cad06bee24300015fc6c67f95808d2%26intsys%3Dfe7a908b327570000b21578fac28005b#/username

所以 不是osp 值包含在重定向 uri 中的情况。它包含在state 查询参数中。

你应该发送

response_type=code&client_id=REST-41b3bb1d-94dc-44e3-b791-4810407b961d&scope=all&redirect_uri=https://localhost?osp=29cad06bee24300015fc6c67f95808d2%26intsys%3Dfe7a908b327570000b21578fac28005b#/username&state=1234567890

另外,我不清楚包括两个?支持整个 URL 中的字符。我会尝试对您的 ? 进行编码,这是 URL 中的第二个。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-14
    • 1970-01-01
    • 2021-12-01
    • 1970-01-01
    • 2012-08-14
    • 1970-01-01
    相关资源
    最近更新 更多