on 2023 Dec 19 8:26 AM
Hi Experts,
I am wondering how to access the Electronic SIgnature API within a POD View Plugin.
This is the URL I use in the ajaxGetRequest:
`${podController.getSignatureODataDataSourceUri()}electronicsignature/v1/signatureLogs?$expand=contexts($expand=values)
In the respone header I get Error 403 with "The request requires higher privileges than provided by the access token."
Is this the correct way to call the SAP DM Public APIs from a POD plugin extension?
Thanks in advance,
Stephan
Request clarification before answering.
Good news, SAP has provided a solution in the release 2402
They have created a new role template "Electronic_Signature_Read".
Users assigned to this role template can now call the GET /sigantureLogs API endpoint from a custom POD plugin!
Regards,
Stephan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume that the URL is correct. The request seems to fail due to missing authorization.
The only role I know in this area is Electronic_Signature_Sign, do you have this one?
See prerequesites here: https://help.sap.com/docs/sap-digital-manufacturing/pod-designer/electronic-signature?locale=en-US
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Idea for an alternative solution if you cannot fix it: Call from the plugin a production process, and make the call to the signatures from the process. Inside the process the API call should be made with a different context, getting the token directly from the service key and not based on the actual user. If this scenario is also not working, it may be needed to generate a new service key.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.