cancel
Showing results for 
Search instead for 
Did you mean: 

CF: Connectivity Service and Multitenancy - tenant mode shared?

former_member603667
Participant
0 Kudos

Hi Experts,

I'm developing a simple sapui5+nodejs application and I created a cloud connector to an on-premise system to read some data via GET. In a "dedicated" mode it worked fine, but in the "shared" tenantmode (where xsuaa is shared), I get only an internal server error but no hint why. I looked at the environment variables and there the property "tenant-mode" is "dedicated". I asked myself, if it has to be "shared" like the xsuaa-service? And if yes, how can I set it there? Has anyone an idea?

SAP Help Entry says the following to the subject of "Multitenancy of the connectivity service". But I don't exactly know what it's meaning. Is dependencies list the part in mta.yaml-file of "requires: ..."?

To consume the Connectivity service from an SaaS application in a multitenant way, the only requirement is that the SaaS application returns the Connectivity service as a dependent service in its dependencies list.

The other SAP Help Entry to the subject does not say anything new.

This is my approuter: I am using Basic Authentication in the destination.

{
	"welcomeFile": "/ui5/index.html",
	"authenticationMethod": "route",
	"logout": {
		"logoutEndpoint": "/do/logout"
	},
	"routes": [{
		"source": "^/ui5/(.*)$",
		"target": "$1",
		"localDir": "webapp"
	}, {
		"source": "^/onprem",
		"target": "/sap/opu/odata/test/5BCU_TEST_SRV/TestSet",
		"destination": "onpremise"
	}]
}

Best regards,

Paige

Accepted Solutions (1)

Accepted Solutions (1)

former_member189718
Active Participant

Hi Paige,

did you change the setting from "dedicated" to "shared" in the existing XSUAA instance? This is not working. If you want to switch to "shared", you need to delete the XSUAA instance and create a new one with "shared" in the security descriptor file.

There is a SAP Help Entry about developing multitenant applications. A multitenant application might reuse existing services like the connectivity service. Now, if a new tenant gets subscribed to the multitenant application, this tenant onboarding has to be also notified to the connectivity service. This is done by listing it as a dependency. Dependencies are explained in this subpage of the above SAP Help Entry.

For your future reference, I also provide you the SAP Help Entry for subscriptions to multitenant applications.

Hope that helps.

Best regards,

Jan

former_member603667
Participant

Hi Jan,

thank you very much for your help. Indeed, the aspect of "listing as a dependency" I had missed. Now I've added them and it finally works. Furthermore there was a problem with the role-templates, as you somehow need uaa.user as scope-reference.

Best regards,

Paige

Answers (0)