cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error: Authentication kind "xsuaa" configured, but no XSUAA instance bound to application. Either

devangelgb
Explorer
0 Likes
3,849

Hello everybody,

Could you someone help me with this error.

Case: I was create a destination for my cap service. I need to connect this with my ui5 app. This configurations return 200. But this does not get metadata.

When i try to connect from service explore to destination or postman. this return 500 but my service works well, I supposed that the problem is related with mi auth config, but when i test my cap app locally return error when thi try to connect to my external odata SAP.

Destination status

devangelgb_0-1722032276315.png

Error: Cannot connect to the service. Check the log for more information.

devangelgb_1-1722032783714.png

Testing locally.

devangelgb_2-1722326773767.png

Best regards,

Angel

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Likes

This should help for testing locally: https://cap.cloud.sap/docs/node.js/authentication#xsuaa-setup

Make sure to also have the correct "redirect-uris" configured depending from where you want to test: localhost, bas, cf, .. Example: https://gist.github.com/pinakipatrapro/1181130189281da53c4da0fcb0dc6afb 

devangelgb
Explorer
0 Likes
My app is bound when I tested locally. It returns a error. Error during request to remote service: Failed to load destination. Caused by: No user token (JWT) has been provided. This is strictly necessary for 'PrincipalPropagation'.
Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Likes
It wasn't in your screenshot, hence I posted the link. This is now a different error, which is probably due to the fact you're not forward the auth token to the destination service so it can be used to authenticate to your target system. Make sure to set 'ForwardAuthToken' to true in your local testing destination. But is hard to tell without knowing your setup.