Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I am using the default organization login functionality of Thingworx. If the user successfully login then it redirects the master mashup. But, if I entered the login page mashup URL it's loading the login page again instead of redirecting to mashup how in a normal application. Is it possible if the user is already authenticated then we can redirect to master mashup based user organization?
Solved! Go to Solution.
Hello @zyuan1 ,
Below are the steps followed to check the behavior,
As per my knowledge, it's already authenticated by User information and it should redirect the user home mashup.
I have created a case with PTC support team, they have created jeera ticket for this case considering as a bug.
If you use the FormLogin to visit the Organization Home mashup, you don't need authenticate twice. And in the Home mashup place you need to assign a Mashup instead of the Master directly. What's the condition in your side?
Hello @zyuan1 ,
I have used FormLogin only to visit the Organization home mashup. If I give the username and password it's able to authenticate for the first time only. But, if I entered Login URL(<server name>/Thingworx/FormLogin/<Organization Name>) again it's loading the login page mashup. But I am expecting it should redirect to the organization mashup because we already authenticated the user details.
Do you mean you logged in to <server name>/Thingworx/FormLogin/<Organization Name> twice, and need to type in the password twice and still go to the same Home Mashup?
But you expect the browser to remember the cache so second time you use the FormLogin you can get into the mashup directly?
When you first time logged in, you'll create a session, so if you open another mashup with link directly in the same browser, you may success; But since you open FormLogin again, the rule for the page is to accept Credentials, you can't skip it.
Hello @zyuan1 ,
Below are the steps followed to check the behavior,
As per my knowledge, it's already authenticated by User information and it should redirect the user home mashup.
I have created a case with PTC support team, they have created jeera ticket for this case considering as a bug.
I not sure how R&D would respond, but per my understanding FormLogin will just redirect to the FormLogin.jsp page, and if you use the same User or another user to login the page, you will get a new session.
Maybe there's already a named user logged in the server in the same composer, but if another user from the same Organization also need to login and do some operations, the activity should be logged under his name instead of give him a quick-pass and use his colleague's identity. That could be harmful for security though, and also different user has different permissions, there could be something second user is not allowed to see in the mashup (some menu direction)