Skip to main content
1-Visitor
April 26, 2019
Solved

After login successfully its again access the login page mashup.

  • April 26, 2019
  • 1 reply
  • 3165 views

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?

Best answer by snoor

Hello @zyuan1 ,

 

Below are the steps followed to check the behavior,

 

  1. Login with URL <server name:port>/Thingworx/FormLogin when Default organization is set with a HomeMashup defined which also has Master Mashup set for it in Design tab

 

  1. On successful login, It redirects to the URL <server name:port>/Thingworx/Runtime/index.html#master=<Master Mashup> &mashup=< Home Mashup>  and displays Home mashup along with the Master Mashup

 

  1. Now enter this URL <server name:port>/Thingworx/FormLogin again in the browser where you have a login.

 

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.

1 reply

5-Regular Member
April 26, 2019

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?

snoor1-VisitorAuthor
1-Visitor
April 26, 2019

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.

5-Regular Member
April 26, 2019

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.