cancel
Showing results for 
Search instead for 
Did you mean: 

BTP Destination error 500

matteoprinetti
Participant
0 Kudos

We set up a CAPIRE application in cf and added it as a OAuth2SAMLBearerAssertion destination.

Cheking the connection in the cockpit return "200 OK", using the app from the browser works with authentication and all.

But calling the destination from another UI5 app always returns "500 Internal Error".

Also trying to access the destination (lets call it mycapserver) from BAS with

curl -v -i "mycapserver.dest/data/InformationSet"

returns a 500.

The log of the app confirms no request arrives at the server.

Is there a way to debug this ?

View Entire Topic
matteoprinetti
Participant
0 Kudos

For the records: I had multiple Problems in the Destination definition, HTML5.ForwardAuthToken was set to true and the Authentication was wrong.

Correct settings for this scenario:

* Cap Service needs to have "jwt" as auth in package.json

* Destination called from CF Launchpad to CF: Proxy Type Internet, Authentication OAuth2UserTokenExchange
* Destination called from NEO Launchpad to CF: Proxy Type Internet, Authentication OAuth2SAMLBearerAssertion

* The Application router part of the CAP Application is not necessary (is only needed if you want a quick client), the destination must point to the cap service.


Now we have a CAP Service running on CF that can be accessed from Neo Portal and CF Launchpad.