Hello everyone, I developed an app that has to subscribe to a specific PLC node in the Datalayer. The app utilizes Service2Service Authentication in order to generate an access token. The scope.json looks as following: {
"id": "datalayer-visualizer-app", "rexroth-device.all.rwx"]
} I retrieve the token successfully. Here is how it looks like as it is parsed from jwt.io website: Note: I noticed that the id parameter is empty and the plchandle is set to 0. When I attempt to subscribe to PLC node in the Datalayer I get the following DL_INVALID_ADDRESS error: However, if I subscribe to a Datalayer node that is not defined by the PLC app, the subscribtion with this S2S token is working flawlessly. Solution: If I authenticate via username/password and retrieve the token from the Authorization API. This issue is resolved. I successfully subscribed to the PLC-defined node in the Datalayer. What I suspect might be the issue is that the token retrieved from the Authorization API is complete (it includes the id and the plchandle parameter is not 0) Additional Info: Build environment: Ubuntu 22.04 Snap base: core22 CtrlX CORE X3 (with core 22 app installed) CtrlX Works version: 1.20.5 I would really appreciate your feedback. 😊
... View more