on 2024 Dec 05 3:45 PM
Hi community,
I am using SAP Cloud SDK (with Node.js) and want to make a request to S4H Public Cloud with the business user instead of a communication user.
The setup looks like follows:
The part for the connection between the SAPUI5 app and the Node.js server inside xs-app.json looks like follows:
Request clarification before answering.
Try setting up the destination as described in documentation: https://help.sap.com/docs/connectivity/sap-btp-connectivity-cf/user-propagation-from-cloud-foundry-e...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for pointing me to the right direction, it worked!
In case anyone else is interested:
I used @SAP-cloud-sdk/connectivity to retrieve the JWT (with the function retriveJwt), see https://sap.github.io/cloud-sdk/docs/js/features/connectivity/destinations.
Just provide the request as parameter to that function [let retrievedJwt = retriveJwt(request)] and you should get the JWT, which you then can pass on to the execute request of the API (providing both the destination name and the jwt). This way the call is getting made with the business user logged on in the frontend application. You also need to make sure that you have a communication arrangement for the given API.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.