【问题标题】:OAuth Authorization code grant - Docusign - Error response while making calls to generate access and refresh tokens from auth codeOAuth 授权代码授予 - Docusign - 调用从身份验证代码生成访问和刷新令牌时出现错误响应
【发布时间】:2017-04-03 21:59:28
【问题描述】:

我正在尝试使用授权代码授予流程来授权我的应用程序文档here。我正在构建一个应用程序来支持使用 REST API 向 Docusign 自动配置用户。我已经创建了一个开发者帐户并获得了 Integrator Key 和密钥。

我提出以下请求以获取授权码:

account-d.docusign.com/oauth/auth?response_type=code&scope=signature&client_id=<MY_CLIENT_ID>&redirect_uri=<localhost>  and the response on the browser with the code.

我正在使用 curl 命令使用以下请求生成令牌:

 curl -iX POST account-d.docusign.com/oauth/token -H "Authorization: Basic base64_representation_of_clientId:clientSecret" -d 'grant_type=authorization_code&code=<Auth Code recieved in the previous step>'

但是我收到了这样的回复:

  HTTP/1.0 301 Moved Permanently
 Location: account-d.docusign.com/oauth/token
 Server: BigIP
  Connection: Keep-Alive
  Content-Length: 0

此错误响应的可能原因是什么?

【问题讨论】:

    标签: docusignapi


    【解决方案1】:

    也许尝试将协议 (https://) 添加到请求 URI?

    curl -iX POST https://account-d.docusign.com/oauth/token...

    【讨论】:

      猜你喜欢
      • 2018-12-20
      • 1970-01-01
      • 2020-12-07
      • 2022-08-16
      • 1970-01-01
      • 2022-08-18
      • 1970-01-01
      • 1970-01-01
      • 2017-08-30
      相关资源
      最近更新 更多