I am trying to use the NodeJS SDK to create a backend application that accesses IoTTSAggregate data using app specific service credentials. I followed the documentation here. I assigned scopes, roles, clientconfig along with everything else specified in the documentation. Being fairly new to this, I am not sure where I am going wrong so any help or insight would be highly appreciated. Thanks in advance!
What is the infrastructure for your application? If your application is hosted with your own infrastructure (self-hosted is the MindSphere term), then you should have Root SSL certificate at least.
Thanks for your response Prashant
I am using Cloud Foundry to host the application.
In the SDK documentation, defining the proxy is mentioned, do you think that might be a cause for this? I might be wrong but I feel that proxy shouldn't matter because I'm pushing it to Clpud Foundry - any thoughts on this?
Yes, I believe I correctly registered the application. I added endpoints to it, added admin and user scope/role to the account and so on - I have registered another application already and I followed a similar process for this one. Yes, I followed the app creation checklist.
When I open the application from the MindSphere page I get a 403 Forbidden and nginx written below it. Thats why I mentioned Nginx in the subject.
It looks like your Nodejs application is missing the required application core mindsphere role for IoT Ts Aggregate.
1) Please open Developer Cockpit
2) Check if it has application role "mdsp:core:iot.timAdmin"
See attached pic for reference. Deploy your app again and verify
Please refer to roles name and its relevant description