cancel
Showing results for 
Search instead for 
Did you mean: 

Problems creating a multitenancy app with CAP

07-09-2025 9:17 AM
345 views 0 comments
0 Likes
SAP Managed Tags
Labels
ApprouterCAPMultitenancyMultitenancyxsuaa
Subscribe

Hello,

we want to create a multitenancy CAP app with Approuter and standalone HTML5 apps (html5-repo), but without portal or workzone. An example is linked (https://github.com/christopher-ketzler/book). The deployment (mta) of the app and the creation of the route works fine. Unfortunately, an “Internal Server Error” occurs when the app is called up. The app is not able to authenticate againt the subscriber subaccount. I have no clue why this happens as I changed the tenant-mode to "shared" (see below).

The app was created in the similar as described in the Cap documentation. It was developed on the BAS and deployed on a BTP trial. The xs-security.json has been extended to support multitenancy and the trial account:

"tenant-mode":"shared",

"oauth2-configuration": {

  "redirect-uris": ["https://*.cfapps.us10-001.hana.ondemand.com/**"]

}

The Approuter (xs-app.json) has been extended to include the link to the Fiori Elements app:

"welcomeFile": "bookui",

I have noticed that the uua tenantmode configuration listed in the HTML5 Runtime does not change to “shared” after updating the tenant. Why is this the case?

The project was created as follows:

  • cds init book –add tiny-sample
  • Creation of the Fiori Elements App (Wizzard).
  • cds add hana,xsuaa,approuter,html5-repo
  • cds add multitenancy
  • cds add mta
  • npm i (also within the mtx modul)
  • Adjustments see below.
  • mbt build
  • cf deploy mta_archive/… -f
  • Creation oft he route in the BTP Cockpit.
  • Update the tenant in the “SaaS Provisioning Service“

Regards

Christopher

 

0 Likes

Accepted Solutions (0)

Answers (0)