cancel
Showing results for 
Search instead for 
Did you mean: 

C4C Side By Side Extension - BTP Cloud Foundry Runtime

former_member772833
Discoverer
0 Kudos

Hello Community,

We have created a side by side extension running on BTP Cloud foundry for Cloud For Customers (C4C).

The application is protected using XSUAA Service and we are using SSO with our Corporate IdP (We have established a direct trust relationship between C4C tenant and the BTP Subaccount, without using IAS).

The application working fine when accessing directly using the link, so far no complaints.

The issue we are facing now happens when integrating the application as a link Mash-up inside C4C, when opening the the Tab where the extension is rendered we get an Internal Server Error (please see the screenshots for further details)

Apparently the issue comes after authenticating the user using SSO and when calling the callback URI.

We know that the authentication is successful, because after refreshing the browser tab where C4C is opened, the application is shown properly, also if we change the TAB inside C4C for example if we click on the CONTACT Tab and then again we go back to the Mashup TAB, the application is shown successfully as well.

PS: We have also configured the xsuaa the allow showing the application inside frames by updating the settings of allowed domains.

Any help will be appreciated,
Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi saad-el

Its mainly blocking Content Security Policy or Content Origin Request Service (either CSP or CORS) ..

To get this solved, you have to whitelist the domain which is created from BTP .*hana.ondemand.com to C4C environment. then it accepts the request coming from the domain to allow the contnent to display

former_member772833
Discoverer

Hello,

Thank you for the reply.

We have already configured BTP to whitelist the domain, like in here: https://launchpad.support.sap.com/#/notes/2912358

if that is what you mean.

The error that I can see on the logs is the following:

"msg":"GET request to /login/callback?code=BHVc6njiHp5NIhvCT684 completed with status 500 Cannot read property 'locationAfterLogin' of undefined"}
arsiluk
Explorer

Hey all,

I am currently working with a customer with the same issue, stating that the 'locationAfterLogin' property was undefined. I looked into what this property is an it appears to be a cookie that is sent in a request to the approuter, and it must not be getting populated when being passed to the approuter. callback-number-1.pngcallback-number-2.png

I have attached screenshots of myself logging into an application deployed in the CF, and you can see that the locationAfterLogin is populated in the request. I was curious if this issue has been resolved on your end? And if so, what was done to fix it? Thank you!