首页 > 解决方案 > 集成服务目录中有关 REST API 的错误

问题描述

我使用 kingswaysoft Rest Api 从 Jira 中提取数据。它在 Visual Studio 上运行良好,但是一旦我将其部署到 Management Studio,我就会收到一条错误消息:

数据流任务:错误:发生错误并显示以下错误消息:“KingswaySoft.IntegrationToolkit.ProductivityPack.Rest.RestServiceException:不推荐使用密码进行基本身份验证。有关更多信息,请参阅: https ://confluence.atlassian.com/cloud /deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.html(SSIS 生产力包,v21.1.0.1551 - ISServerExec,v13.0.5026.0)KingswaySoft.IntegrationToolkit.ProductivityPack .Http.HttpServiceException : 远程服务器返回错误: (401) Unauthorized. (Error Type / Reason: Unauthorized, 详细信息: Basic authentication with passwords is deprecated. 有关详细信息,请参阅: https://confluence.atlassian.com/cloud/deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.html )System.Net.WebException(状态原因:未授权):远程服务器返回错误:(401) Unauthorized."。

我曾尝试多次更改连接字符串(添加 API 密钥,将其编码为 Base64),但到目前为止没有成功。我的尝试之一示例:

ServiceName=Jira;PathToTokenFile=;AuthenticationMode=Basic;ConsumerKey=;ServerUrl=linkurl;ApiThrottleRate=0;CertificatePath=;Username=username:apitoken;ProxyMode=Manual;ProxyUsername=proxyusername;ProxyServer=proxyserver;ProxyServerPort=proxyport;ServiceTimeout=120 ;RetryOnIntermittentErrors=True;IgnoreCertificateErrors=False

有关如何解决此问题的任何建议?

标签: ssisssmsjirakingswaysoft

解决方案


看起来错误是由于Jira 中的基本身份验证弃用而引发的,我们在连接管理器中支持 API 令牌和 OAuth,这是我们建议使用的,因为您遇到了此类错误。有关 OAuth 身份验证的更多详细信息,请参阅以下文档。但是,如果您在配置这些方面需要帮助,请联系我们的支持团队。

  • 项目清单

配置 OAuth 使用者 - JIRA 4.2 - Atlassian 文档


推荐阅读