0

I'm trying to implement integration between two systems, one of them being Klocwork. For now the other system would only retrieve data from Klocwork and work with them further. For retrieving of the data I want to use WEB API. However I encountered problem with the authentication.

Authentication to KW is setup through LDAP. According to documentation I will have to authenticate before I can actually retrieve the data from KW on the side of the other system.

Is there a possibility to authenticate through WEB API or is it possible only through the use of kwauth? If it is possible only through kwauth is there some easier way to automate the process of authentication from some external system or do I have to manually authenticate each person individually through command and save the token in the other system for the later use?

Thanks a lot for any help,

Jakub

4

1 回答 1

0

除了使用 ltoken 之外,没有其他方法可以使用 WebAPI 进行身份验证。您kwauth只需对用于访问 WebAPI 的 LDAP 用户帐户进行一次身份验证。这将创建一个“ltoken”文件,用于向 Klocwork 服务器进行身份验证,该文件可用于 WebAPI 请求。

http://www.klocwork.com/products/documentation/current/Klocwork_Insight_Web_API_cookbook#Authentication

对于所有 WebAPI 请求,我只会使用一个特定的 LDAP 帐户和 ltoken,除非这不适用于您的场景。不需要kwauth为每个用户手动运行。

于 2013-11-08T06:14:26.147 回答