首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OAuth授权代码授予-在调用以从auth代码生成访问和刷新令牌时发生文档错误响应

问OAuth授权代码授予-在调用以从auth代码生成访问和刷新令牌时发生文档错误响应
EN

Stack Overflow用户
提问于 2017-04-03 09:02:43
回答 1查看 307关注 0票数 0

我正在尝试使用授权代码授予流来授权我的应用文档这里。我正在构建一个应用程序,以支持使用REST的Docusign自动用户的附加条件。我已经创建了一个开发人员帐户,并获得了Integrator密钥和密钥。

我请求获得auth代码如下:

代码语言:javascript
复制
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命令使用以下请求生成令牌:

代码语言:javascript
复制
 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>'

然而,我得到了这样的答复:

代码语言:javascript
复制
  HTTP/1.0 301 Moved Permanently
 Location: account-d.docusign.com/oauth/token
 Server: BigIP
  Connection: Keep-Alive
  Content-Length: 0

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-03 13:59:28

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

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43180509

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档