Tm1web login via url?

Post Reply
andersknudsen
Posts: 8
Joined: Thu May 07, 2009 2:10 pm
Version: 8.4
Excel Version: 2007

Tm1web login via url?

Post 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
User avatar
jim wood
Site Admin
Posts: 3951
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Tm1web login via url?

Post 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.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Tm1web login via url?

Post by rmackenzie »

You could take a look at the TM1Web URL API and see if you can use that to help automate your testing?
Robin Mackenzie
andersknudsen
Posts: 8
Joined: Thu May 07, 2009 2:10 pm
Version: 8.4
Excel Version: 2007

Re: Tm1web login via url?

Post 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.
andersknudsen
Posts: 8
Joined: Thu May 07, 2009 2:10 pm
Version: 8.4
Excel Version: 2007

Re: Tm1web login via url?

Post 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>
Royi9861
Posts: 3
Joined: Tue Mar 10, 2015 2:45 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2013

Re: Tm1web login via url?

Post 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?
lotsaram
MVP
Posts: 3654
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Tm1web login via url?

Post 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.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
Post Reply