Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Looking for ideas here: The requirement is to display some dashboards (with auto refresh widget) on TV screens and no user interaction is expected once setup. Need to automatically login the user and should survive Thingworx restarts.
I have developed a custom authenticator that automatically logs in a user depending on custom parameters passed in the initial URL which is a REST GET URL like http://server:port/Thingworx/Mashups/MyMashup?myCustomParam=<value of interest>
Although this works for the initial login, the page gets redirected to an URL with anchor tag of the format - http://server:port/Thingworx/Runtime/index.html#....MyMashup...
If the Thingworx server restarts, there is a prompt for login as the redirected URL has a anchor tag and the request is trimmed off at the '#' and the authenticator does not receive the originally params that are used for automatic login.
How can I overcome this issue? Is there a way to pass headers or set cookies through authenticator to survive Thingworx server restart?
Solved! Go to Solution.
Nevermind, the solution was to not use REST URL but the regular URL to start with so that there is no redirection in the first place. As a result, the URL does not change and param continues to be before the anchor.
Nevermind, the solution was to not use REST URL but the regular URL to start with so that there is no redirection in the first place. As a result, the URL does not change and param continues to be before the anchor.