on 07-22-2023 10:39 PM
Hi All,
I have created a BTP Credential Store instance and a CAP application. Within my CAP application's cat-service.js file I have written an Action on which I would like to read the Credential Store password and utilize it for further processing. Could you help with the steps to fetch the Password from Credential Store within BTP CAP service.js file ?
Thanks
Abhinav
Hi abhinav.jain01,
Feel free to check out our sample repo, which is using Credential Store as part of a CAP-based multitenant SaaS application. That should give you a good idea how to implement things. Just use the credentials from the service binding and you are good to go!
https://github.com/SAP-samples/btp-cf-cap-multitenant-susaas/blob/basic/srv/utils/automator.js#L78
https://github.com/SAP-samples/btp-cf-cap-multitenant-susaas/blob/basic/srv/utils/credStore.js
Furthermore, also the Credential Store SAP Help page contains a nice sample Node.js script, which we leveraged for our coding!
Best,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.