服务器使用 CAM 时如何向 Cognos TM1 REST API 进行身份验证

How to authent to Cognos TM1 REST API when server is using CAM

何时尝试使用 REST API 从 Cognos TM1 获取一些日期,我收到 HTTP 401:未经授权

这是我的基本身份验证示例 header。

GET https://testserver:8000/api/v1/Cubes

我收到 HTTP 401:未经授权并且在头脑中:

WWW-Authenticate: CAMPassport http://testserver:80/ibmcognos/cgi-bin/cognosisapi.dll, CAMNamespace

如何从 CAM 获取 cookie,以便我可以将其与 REST 一起使用 API?

我找到了一个很好的 wiki 页面,对我帮助很大:Using CAM authentication with TM1's, OData compliant, RESTful API