2024 Jun 05 11:14 AM - edited 2024 Jun 05 11:15 AM
Hi Expert,
I have created two CAP applications, each with its own XSUAA authentication service. I want to call one CAP service from another CAP application. I followed @CarlosRoggan blog here, which worked perfectly for external users but failed for the application-to-application case.
I followed the exact steps, but the user JWT token doesn't contain the provider app scope when doing it for another application. However, it works perfectly for external users. Please help me.
@CarlosRoggan @gregorw @MioYasutake @Ivan-Mirisola
Thanks
Somnath
The blog post you mentioned explains the very basic steps to achieve app to app authentication. In CAP, we normally utilize the destination service to achieve the same. How to do it is described in the document below:
https://cap.cloud.sap/docs/guides/using-services#introduction
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
P.S. The original solution works fine with a slight modification on the server.js file of the provider app. Please find my git repo below:
User | Count |
---|---|
69 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.