Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hey guys, I am wondering how I go about programmatically logging in a User using some kind of known information that correlates with that user.
What is the use case for this?
Hey thanks for the reply, I want to have 2 users in thingworx and depending on which language someone picks I want to log them into a certain user so their language preference appears.
You can't just set their Language Preference in their actual user?
The other way to do it, is to load the language preference upon a choice vs. switching users.
I think that is better than logging in another user automatically which has potential security concerns.
The issue is that our program does not utilize the Users feature normally and we have everyone logged in as TVUSER and we use our own authentication system within the app. What im hoping for is we have 2 new users which each have a default language we can log people in and out of. Is this something that is possible through a script?
In older versions of ThingWorx you could use an appkey and make the session persist, not sure if that is still possible.
Aside from that, I have seen implementations where the language tokens were loaded on demand vs. associated with the user, so that might be a better option to explore. I apologize because its been a long time since I've seen that implementation so I am not completely certain how it was done, you can perhaps create a new thread asking about how to load language tokens on demand.
Hey thanks for all the replies, I will actually go ahead and ask that question in a new thread and see if anyone has done something similar. Thanks again.