Page 1 of 1

How to pass the REST Api tm1 authentication with Campassport

Posted: Tue May 08, 2018 1:09 pm
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???