Page 1 of 1
How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 6:24 am
by sirsa
Good Morninig to all,
Problem:
I need to write URL link which will log user to tm1 environmet and then view the cube. I have tried many ways but I can't solve it. There are shown several ways that I tried:
1. http://MyTM1Server/tm1web/TM1WebLoginHa ... ]TM1Server[/b]=Mytm1server&
AdminHost=MyAdminHost&
UserName=Anonymous&redirect=
http://10.11.7.99/TM1Web/TM1WebCubeView ... d=24418296
2. http://MyTM1Server/tm1web/TM1WebLoginHa ... ]TM1Server[/b]=Mytm1server&
AdminHost=MyAdminHost&
UserName=Anonymous&action=OpenObject&type=Cubeviewer&value=MyCube
But it did not work. I tried to compose this from the manual page:
http://publib.boulder.ibm.com/infocente ... 90213.html but I can't solve it.
Thanks a lot for any advice.
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 6:50 am
by lotsaram
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 8:46 am
by sirsa
lotsaram :
Hellou,
Yes, I have used the search, but there is option how to log in and I need log and open cube in one link.
I have tried it many ways...but I have no other ideas.
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 9:08 am
by rmackenzie
Per the link you posted, to the documentation:
Include in URL - Specify login information in the URL when accessing TM1 Web objects. The URL must include values for AdminHost, TM1Server, UserName, and Password.
You haven't included the password, which you have to pass in the 'clear'. Integrated login is advised when you need the login to not be part of the user experience because obviously having the password as part of the URL is a problem.
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 12:47 pm
by sirsa
rmackenzie
thank you for help, but for my case there is no problem having password as a part of URL link. There is no security needed. I just need to create URL link which will be written in internet browser and login and then opening cube will shown.
But thank for any advice:)
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 1:33 pm
by rmackenzie
Yes, you may not need security, but you still have to use the 'Password' parameter in the query string even though you may not have set a password against the 'anonymous' user. Did you actually try that out yet?
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 1:37 pm
by sirsa
rmackenzie
I tried to put there password parameter, but I am not sure with syntax of blank password (because Anonymous account in my case has blank password). How can I write there that password is blank ?
Thanks
Re: How to Login and then view the Cube via URL link ?
Posted: Wed Apr 11, 2012 1:43 pm
by rmackenzie
Just don't put anything there...
Code: Select all
http://MyTM1Server/tm1web/TM1WebLoginHandler.aspx&TM1Server=Mytm1server&AdminHost=MyAdminHost&UserName=Anonymous&
Password=&action=OpenObject&type=Cubeviewer&value=MyCube
Re: How to Login and then view the Cube via URL link ?
Posted: Thu Apr 12, 2012 7:21 am
by sirsa
rmackenzie
thanks for idea but it still not working. I will try turn off Single Sing On.
Re: How to Login and then view the Cube via URL link ?
Posted: Thu Apr 12, 2012 7:41 am
by lotsaram
sirsa wrote:thanks for idea but it still not working. I will try turn off Single Sing On.
That is new information that you might have thought of mentioning earlier!
If you have SSO (I take it you mean integrated login in traditional TM1 speak?) all working then you don't need the login handler part of the URL at all. You can just use the URL API to direct the user straight to the cube view or websheet and the login will be handled automatically.