Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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
Solved! Go to Solution.
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)
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.
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)
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)