Skip to main content
18-Opal
January 30, 2018
Solved

is it possible change user through mashup?

  • January 30, 2018
  • 3 replies
  • 3393 views

hi, i'm seonho

is it possible change user through mashup?

for example, i login 'A' User

and mashup has two text box and button(navigate)

a 'B' user ID and password  input to text box

and click button(navigate) then user change

it looks similar FormLogin

is it possible? if so how to?

thanks

Best answer by PaiChung

To my knowledge since you can only have one session at a time, you can't do it without first logging out one user then logging in as the other user.

(You can use a server side service to end a user session so it isn't just the logout service)

3 replies

22-Sapphire I
January 30, 2018

What is the use case?

I've seen people create Registration style mashups using an AppKey which then allows a user to register first.

After that it logs them out and redirects them to a new page where they officially log in.

Is that what you are trying to accomplish?

I think if that is what you want to do?

Personally if you wanted someone to be logged out and another person be logged in, I would always do it in 'two steps' session closed, and they land at a login page.

CHASEONHO18-OpalAuthor
18-Opal
January 31, 2018

I'm sorry I did not give you enough explanation.

My intention is to be able to change users without logging out.

You can account in specific page(MashUp) using the AppKey.

The AppKey reference a user.

If you use AppKey to access a specific page, you will be logged in to Thingworx as a user referencing Appkey.

A good way to change a user is to sign out and redirect to a different login page.

But I wonder if I can change a user with a user ID and password without a widget called logout. (Service or event)

PaiChung22-Sapphire IAnswer
22-Sapphire I
January 31, 2018

To my knowledge since you can only have one session at a time, you can't do it without first logging out one user then logging in as the other user.

(You can use a server side service to end a user session so it isn't just the logout service)