How to pass the REST Api tm1 authentication with Campassport

Post Reply
kavitha2002
Community Contributor
Posts: 180
Joined: Sat May 05, 2018 11:48 am
OLAP Product: tm1
Version: 10.3.10100.8
Excel Version: 14

How to pass the REST Api tm1 authentication with Campassport

Post by kavitha2002 »

I am using c# application, to sent get async request for rest api tm1 with campassport

"http://localhost:8000/api/v1/ActiveSess ... kgfasgsfgj"
param0 is cam_passport but it gives 401 error

HTTP/1.1 401 Unauthorized
Content-Type: text/plain
Content-Length: 0
Connection: keep-alive
OData-Version: 4.0
Set-Cookie: TM1SessionId=q0ru49M1uLpImkzvpZ06Ww; Path=/api/; HttpOnly
WWW-Authenticate: CAMPassport http://localhost:80/ibmcognos/cgi-bin/cognos.cgi, CAMNamespace

But the same url works in ARC, which is used to test the url. but from application its not working ?? any idea of how to make it work???
Post Reply