403作为HTTP错误代码登录到DocuSign时



我正在与DocuSign(通过自定义X-Docusign-authentication header属性(一起使用旧的服务集成以及DocuSign SDK,并且我总是从某些中收到403作为HTTP错误代码我的平台试图登录https://demo.docusign.net/restapi。

以下是有关我得到的响应的一些详细信息:

  • 响应代码= 403
  • 响应标头= {x-cache = [squid.local],server = [squid/3.1.23],连接= [keep-alive],x-squid-error = [err_access_denied 0],date = =[2018年4月30日星期一07:21:00 GMT],via = [1.0 squid.local.local(squid/3.1.23(],x-cache-lookup = [none in squid.local.local.local:3128],vary = [接受-language],content-Length = [3245],mime-version = [1.0],content-language = [en],content-type = [text/html]}
    • 响应身体=

具有完全相同的凭据(Integrator密钥,用户名和密码(的相同代码在另一个平台上完美工作。

所以,我想知道原因是什么?

您是否在公司防火墙后面?我也遇到了同样的问题,所以我添加了一个代理并解决了问题。

            WebProxy webProxy = new WebProxy("http://[IP]:[PORT]", true)
            {
                UseDefaultCredentials = false,
                Credentials = new NetworkCredential("[domain]%5C[userid]", "[password]")
            };

问题与防火墙配置有关。