Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
How to allow anonymous access for a mashup? Or in other words, how do I create a mashup that is viewable for the public without login.
Solved! Go to Solution.
You can create a user with permissions to that specific Mashup (along with any related entities), and then create an appKey based on that user. Once you have an appKey, you can access the Mashup at, for example,
localhost/Thingworx/Mashups/Name_of_Mashup?&appKey=appKey_you_created&x-thingworx-session=true
The x-thingworx-session parameter here would persist the user session across the Mashup and others attached to it.
Once again, please note that the created appKey, based on the user, will have access to everything that user has. So, it would be a bad practice to create one based on the Administrator, as it would have pretty much have complete access.
You can create a user with permissions to that specific Mashup (along with any related entities), and then create an appKey based on that user. Once you have an appKey, you can access the Mashup at, for example,
localhost/Thingworx/Mashups/Name_of_Mashup?&appKey=appKey_you_created&x-thingworx-session=true
The x-thingworx-session parameter here would persist the user session across the Mashup and others attached to it.
Once again, please note that the created appKey, based on the user, will have access to everything that user has. So, it would be a bad practice to create one based on the Administrator, as it would have pretty much have complete access.