Skip to main content
1-Visitor
Nov 29, 2017 7:24 PM UTC
Solved

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

    posipovaAnswer
    20-Turquoise
    Nov 30, 2017 4:47 PM UTC

    10 replies

    20-Turquoise
    Nov 29, 2017 8:04 PM UTC

    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.

    Translate
    fgrondin1-VisitorAuthor
    1-Visitor
    Nov 29, 2017 8:57 PM UTC

    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 :

    Translate
    20-Turquoise
    Nov 30, 2017 4:00 AM UTC

    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.

    Translate
    fgrondin1-VisitorAuthor
    1-Visitor
    Nov 30, 2017 4:19 PM UTC

    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.

    Translate
    posipova20-TurquoiseAnswer
    20-Turquoise
    Nov 30, 2017 4:47 PM UTC