I have created experience to download PVZ file from Thingworx Repository. It works perfectly when I set authentication but fails at public access.
Error message in Vuforia View App : 03-11 10:47:36.518 23787 24326 E TGX_NativeDownloadTask: com.ptc.thingx.cordova.plugin.core.TGXUtils$HttpResponseException: url=http://vuforia.domain.net/Thingworx/FileRepositories/SystemRepository/PVZs/XYZ.pvz, httpResponseCode=401, httpResponseMessage=Unauthorized, extraInformation=null
I have provided access to 'es-public-access' and also tried by adding 'es-public-access' to Administrator group
When I try same API call using Thingworx domain (http://thingworx.domain.net) and 'es-public-access ' appKey it works perfectly but it throws error when I use domain as 'http://vuforia.domain.net/'
Do you mean that it works fine if you set "Require Authentication" in the access field of the experience, it works fine, however, if you set the access field to "public", you could NOT download the PVZ from view?
What is your Platform of Vuforia View, Android or IOS? or neither of the two platforms work?
Yes, if I set 'Required Authentication' in experience it works, but not as 'Public' in experience.
Issue occurs on both platform Android and iOS.
If you set 'Required Authentication' in experience it works, I would suggest to double check the permission setting for the related Things in Thingworx refer to "Configure Public Access to ThingWorx" section in Help Center.
especially the section Grant user permission and Grant Organization permission. see below Link:
Hi @Velkumar ,
I am not sure if the direct access to the http/s will work , because I used another apprach what we already discussed in the post:
using the Thingworx service app.mdl.<Your-Repository-Thing>.svc.LoadBinary is the current supported way to do this.
Another way I've been able to make this work is by appending the public user appKey as a URL parameter on the src URL. For example. to load model cad.pvz from file repository VuforiaProcedureGraphicStore, we use a URL like this:
This allows access without requiring active authentication.