Page 1 of 1

Tm1web login via url?

Posted: Wed Mar 28, 2012 11:29 am
by andersknudsen
Hi,

In my current tm1web environment v8.4 I have modified the login page so that the asp page takes 2 parameters, username and password (e.g. http://tm1web/login.asp?user=XXX&password=YYY). In that way I can simulate to login as different users without having to remember their passwords.

I have tried to do the same in v9.5 but without any luck. Does anyone have a fix to this problem?

I hope to hear from you
Thanks, Anders

Re: Tm1web login via url?

Posted: Wed Mar 28, 2012 2:40 pm
by jim wood
There is a setting in the web.config file that you can set the user and password. It's proably not working as this may be new. How you fix without using soe kind of integrate login I'm not sure,

Jim.

Re: Tm1web login via url?

Posted: Wed Mar 28, 2012 11:21 pm
by rmackenzie
You could take a look at the TM1Web URL API and see if you can use that to help automate your testing?

Re: Tm1web login via url?

Posted: Thu Mar 29, 2012 7:41 pm
by andersknudsen
Thanks for your posts and help :-)

Especially the link to TM1Web URL API was helpful. Using the API, I have managed to make a aspx file which takes username and password as parameters and login to tm1web.

Re: Tm1web login via url?

Posted: Fri Mar 30, 2012 12:47 pm
by andersknudsen
... if anyone wants the code:

<%@ Page Language="VB" %>
<html>
<body onload="document.form1.submit()">
<form name="form1" method="post" action="tm1webloginhandler.aspx?redirect=http://localhost/tm1web">
<input name="AdminHost" id="Adminhost" type="hidden" value="tm1serv">
<input name="Tm1Server" id="Tm1Server" type="hidden" value="tm1serv">
<input name="UserName" id="UserName" type="hidden" value="<% =request.querystring("b") %>">
<input name="Password" id="Password" type="hidden" value="<% =request.querystring("p") %>">
</form>
<img src="/tm1web/images/LEV_Loading.gif" alt="Loading..." />
</body>
</html>

Re: Tm1web login via url?

Posted: Tue Mar 17, 2015 5:27 am
by Royi9861
jim wood wrote:There is a setting in the web.config file that you can set the user and password. It's proably not working as this may be new. How you fix without using soe kind of integrate login I'm not sure,

Jim.
Hi,Jim
Can you tell me how to do this in detail and I can not find web.config file in TM1 10.2.2?

Re: Tm1web login via url?

Posted: Tue Mar 17, 2015 8:42 am
by lotsaram
Royi9861 wrote:Can you tell me how to do this in detail and I can not find web.config file in TM1 10.2.2?
TM1 web is completely rebuilt on java for 10.2 the web config file is now located at
.../webapps/tm1web/WEB-INF/configuration/tm1web_config.xml

The URL API for TM1Web is also completely different from the previous IIS based TM1web.