on ‎2023 Jan 31 7:41 AM
Hello Everyone,
I have created the CAP Service enabled with XSUAA because of which if I try to execute my BTP Deployed CAP Service resulting me Unauthorized error which is expected behavior.
With Postman, I am able to do GET and POST call using oAuth credentials.
Now my requirement is to access this CAP Service in other SAP UI5 application outside CAP project.
I have created the destination in SAP BTP using XSUAA client credentials and authentication method as "OAuth2ClientCredentials" .
Below is the screen shot of destination

Now if I am trying to consume this destination in sap UI5 application its giving me 500 error.

Please let me know if I am missing some step.
Regards
Divye
Request clarification before answering.
You should remove HTML5.ForwardAuthToken from the Additional Properties of the destination. It does not make sense when using authenticating with OAuth2ClientCredentials.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even i'm working i getting same how i could we slove it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried this and this also giving same 500 error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are some limitations in connectivity support for oData sources supported by Fiori Tools. Please refer to the documentation of the relevant tool: Fiori Elements or SAP UI5 Freestyle.
You might be better off using Connect to an OData Service with a Customized URL. That way you can use the proxy available in Business Application Studio to connect to external systems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @karthikarjun,
Yes with postman it is working fine using oauth credentials.
Regards
Divye
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi divyeaggarwal - It seems the issue has related to a system error.
Did you get a chance to execute this API entity from postman client?
Regards,
Karthik Arjun
SAP Fiori | CPI Senior Specialist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's a status code 500, meaning the server failed to respond or raised an error/exception due to his fault (could be a crash). Check the CAP app's service logs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.