Page 1 of 1

TM1 C# RestAPI - Recive Passport from BI Gateway?

Posted: Tue Jul 07, 2020 5:56 am
by HighKeys
Hello Community,

i have a question which i can't find online, so i will open up a new topic.

Does anybody already tried to Login the TM1 via SSO BI Gateway per RestAPI? Or anybody has an idea how to do that?

May open a browser, use the autologin and check the cookies for the passport?


Thanks and BR

Re: TM1 C# RestAPI - Recive Passport from BI Gateway?

Posted: Thu Jul 09, 2020 2:51 pm
by ascheevel
I know C# is in the header so this might not be what you're looking for, but TM1PY can authenticate with SSO if you supply a gateway parameter in the connection string. There are some prerequisites like only being supported with Windows though. Looking at your post history, it looks like you have experience getting the CAM Passport cookie from hitting the gateway with username & password, so won't waste your time suggesting an approach that prompts the user for username/password if what you're looking for is SSO. I don't have any experience in C# and have no suggestions for you, but I'm guessing some google fu on C# and SSO might give you some ideas/examples.

Re: TM1 C# RestAPI - Recive Passport from BI Gateway?

Posted: Fri Jul 10, 2020 8:37 am
by HighKeys
Hi ascheevel!

Thanks for your response, thanks for the hint with TM1py, i will check them out, as i know its open source so may i can port the part to my C# project.

And i found i can trigger python in C# so may i can combine them :)
ascheevel wrote: Thu Jul 09, 2020 2:51 pm Looking at your post history, it looks like you have experience getting the CAM Passport cookie from hitting the gateway with username & password, so won't waste your time suggesting an approach that prompts the user for username/password if what you're looking for is SSO. I don't have any experience in C# and have no suggestions for you, but I'm guessing some google fu on C# and SSO might give you some ideas/examples.

Yes since i joined here (nearly the same day i first see Tm1/PA and the other IBM Cognos components), i got some experience with the CAM Auth and the Gateway, was hard to lern but i think i got it :lol:

At the moment i just build a Framework for future projects, so i added all rest calls in c# and serialized them in objects for easy handling, last thing missnig is the SSO over the Gateway, so thanks again for the hint with tm1py. (I have to learn python i think, lot of useful stuff there)

BR