集成服务目录中关于REST API的错误



我使用kingswaysoft Rest Api从Jira提取数据。它在Visual Studio上工作得很好,但是,一旦我将它部署到Management Studio,我得到一个错误陈述:

Data Flow Task:Error:出现以下错误信息:"KingswaySoft.IntegrationToolkit.ProductivityPack.Rest.RestServiceException:不赞成使用密码进行基本身份验证。更多的信息,请参阅:https://confluence.atlassian.com/cloud/deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.htmlSSIS生产力包,v21.1.0.1551 - ISServerExec,v13.0.5026.0) KingswaySoft.IntegrationToolkit.ProductivityPack.Http.HttpServiceException远程服务器返回错误:(401)未经授权。(错误类型/原因:未经授权,详细信息:基本认证不建议使用密码。有关更多信息,请参见: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),但到目前为止没有成功。我的一个尝试的例子:

名= Jira; PathToTokenFile =; AuthenticationMode =基本;ConsumerKey =; ServerUrl = linkurl; ApiThrottleRate = 0; CertificatePath =;用户名=用户名:apitoken; ProxyMode =手册;ProxyUsername = ProxyUsername; ProxyServer = ProxyServer; ProxyServerPort = proxyport; ServiceTimeout = 120; RetryOnIntermittentErrors = True; IgnoreCertificateErrors = False

对于如何解决这个问题有什么建议吗?

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

列表项

配置OAuth消费者- JIRA 4.2 - Atlassian Documentation

最新更新