Hi everyone,
did someone tried to authenticate using integrated mode 5, with CAM?
Any help with some more detailed steps than on IBM pages would be really helpful.
I tried combinations with encoding my username, password and namespace, but all returned 401 unauthorized. Also if someone was trying with CAM passport, any help is welcome. I am using Postman and I tried to follow CAMuri and send CAM Passport that I see in cookies after logging in, but that didn't help either
Thanks.
TM1 REST API and Mode 5 Security / CAM
-
- Community Contributor
- Posts: 287
- Joined: Fri Feb 15, 2013 5:49 pm
- OLAP Product: TM1
- Version: PA 2.0.9.1
- Excel Version: 365
- Location: Minneapolis, USA
Re: TM1 REST API and Mode 5 Security / CAM
Are you including "CAMNamespace" in your authorization header as a prefix to your username:password:namespace?
per IBM, your authorization header should look as follows:
CAMNamespace base64(<username>:<password>:<namespace>)
or if you've already converted your <username>:<password>:<namespace> to base64, just drop the base64() from the header:
CAMNamespace <base64 encoded username:password:namespace>
You can use a passport in your authorization header as well, but you'd need to get the passport first by authenticating against the ClientCamURI gateway. When sending the passport, the authorization headers should look like this: CAMPassport <cam_passport>
Just throwing out there that TM1py already supports what you're trying to do, but realize there may be reasons why you're not planning to use a TM1py solution.
link for anyone stumbling here and wanting to see IBM documentation on authenticating sessions:
https://www.ibm.com/docs/en/planning-an ... g-sessions
per IBM, your authorization header should look as follows:
CAMNamespace base64(<username>:<password>:<namespace>)
or if you've already converted your <username>:<password>:<namespace> to base64, just drop the base64() from the header:
CAMNamespace <base64 encoded username:password:namespace>
You can use a passport in your authorization header as well, but you'd need to get the passport first by authenticating against the ClientCamURI gateway. When sending the passport, the authorization headers should look like this: CAMPassport <cam_passport>
Just throwing out there that TM1py already supports what you're trying to do, but realize there may be reasons why you're not planning to use a TM1py solution.
link for anyone stumbling here and wanting to see IBM documentation on authenticating sessions:
https://www.ibm.com/docs/en/planning-an ... g-sessions
-
- Posts: 3
- Joined: Fri Oct 01, 2021 12:10 pm
- OLAP Product: TM1
- Version: 2.0.7.
- Excel Version: Excel 2016
Re: TM1 REST API and Mode 5 Security / CAM
Hi,
thanks a lot on your quick response.
I am using Postman, so my header key is CAMNamespace and value is base64 encoded username:password:namespace, so I guess it is not a problem.
For passport, I put ClientCamURI in my browser and then login window pops up, after logging in I found CAMPassport in Cookies, but when I try to use them in Postman for authentication and I still get 401 Unauthorized.
I also tried TM1py, but no results.
Maybe I am missing something in setup. Do you know where can I check what exact credentials should be passed as username:password:namespace? Or if you could share what are exact steps for CAMPassport way if I am doing it wrong?
Thanks a lot.
thanks a lot on your quick response.
I am using Postman, so my header key is CAMNamespace and value is base64 encoded username:password:namespace, so I guess it is not a problem.
For passport, I put ClientCamURI in my browser and then login window pops up, after logging in I found CAMPassport in Cookies, but when I try to use them in Postman for authentication and I still get 401 Unauthorized.
I also tried TM1py, but no results.
Maybe I am missing something in setup. Do you know where can I check what exact credentials should be passed as username:password:namespace? Or if you could share what are exact steps for CAMPassport way if I am doing it wrong?
Thanks a lot.
-
- Community Contributor
- Posts: 287
- Joined: Fri Feb 15, 2013 5:49 pm
- OLAP Product: TM1
- Version: PA 2.0.9.1
- Excel Version: 365
- Location: Minneapolis, USA
Re: TM1 REST API and Mode 5 Security / CAM
Your header key should be "Authorization" and the value should be "CAMNamespace <base64 encoded username:password:namespace>"
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: TM1 REST API and Mode 5 Security / CAM
Just a check, did you have colon in your password section?