cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect login to FormLogin

SOLVED
Level 8

Redirect login to FormLogin

Hey guys,

I was wondering when you connect to ThingWorx via this link : server/ThingWorx

It asks you for your credentials.

I would like that previous link to be redirected to server/Thingworx/FormLogin/Everyone. How can I do that ?

With that, I can use a home mashup with the Everyone organization.

Then, whenever the session timeouts, I would like it to be redirected to the same URL (server/Thingworx/FormLogin/Everyone) How can I do that ?

I'm using PostgreSQL 9.4.15 & TOMCAT 8.5 and ThingWorx 8.0.5

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Redirect login to FormLogin

10 REPLIES 10

Re: Redirect login to FormLogin

You may try this for the first part of your question:

Configuring URL redirection for ThingWorx

For the timeout redirect, not sure it is possible currently.

Re: Redirect login to FormLogin

Thank you for the quick reply.


I was able to do the redirection.

So now, whenever they type the server, it redirects to ThingWorx.

Maybe it's unclear for the second part.

instead of having this Authentication prompt message(img1), I would like to get to the FormLogin (img2) without having to type /FormLogin/Everyone

I would like to redirect to this :

Re: Redirect login to FormLogin

I understand the requirement, however, I do not think it's currently possible with the form login. There should be an article on this, I'll look tomorrow during North America business hours and post a link here. You may try going the custom authenticator route although it would be a lot more involved.

Re: Redirect login to FormLogin

Okay, thank you.

I know it is possible as my customer, who is using ThingWorx 6.5 is doing it.

I would want to do the same for an internal server..

I wanted to find out how to do it, instead of asking them.

If you do find how to do it, it would be nice to let me know.

Otherwise, I will ask my customer.

Re: Redirect login to FormLogin

Re: Redirect login to FormLogin

Good Thank you ! The second link has worked for me !

Re: Redirect login to FormLogin

Glad it worked! Thank you for your time and patience.

Re: Redirect login to FormLogin

Can you please help with my case which is similar to the above solution:

  1. 1. We are currently using composer for development activity
  2. 2. We are having the mashups for an application which uses Form-Login that runs on the same Thingworx
  3. 3. If I use the custom auth https://community.thingworx.com/message/55908#55908 , it fails for composer login. I would need the code snippet for issueAuthenticationChallenge method to redirect the session timeout popup to specific mashup page and this should work only for mashup application and not for composer flow.

Please help me with this.

Re: Redirect login to FormLogin

Frederik Grondin​ is this the method you have used in your implementation?