on 03-17-2023 2:04 PM
Hi,
Scenario:
Is it possible to connect the consumer S/4 on premise system to the multi-tenant aware event-mesh?
As far as I see, we can only extract one single service-key for the whole Event Mesh instance, therefore the S/4 system pushes the events to the instance, but from here the event is not shared with the "correct" subscription of the event mesh.. (which makes sense - there is no tenant information in the global service key).
----
If it is not possible: Can i have an own dedicated event mesh in the consumer subaccount and somehow connect that event mesh to the Multi-Tenant SaaS event-mesh "transparently" (i.E. using cds.on)? I see one "solution":
That should work, but is not nice as I can not use the integrated event capabilites.
Thanks,
Timo
marc.mauri
General solution is as follows:
This solution causes two problems:
(1) you need to have a client-id / client-secret of the subaccount of the consumer
(2) as per the webhook specification the service must answer in a well defined manner, e.g. answering an options call.
For number (2) you can see the following code as an example. Note: this is using an own implementation of a rest endpoint on purpose, as I need to answer the "options" call, so that the webhook handshake is working.. It might be possible to do that with a "normal" cds implementation too.. but i started using that way, so i just wanted to finish 🙂
For number (1) there are basically two solutions.. None of which I really like 🙂
Number 1: Custom hacking (totally bad, but works 🙂 ).
Number 2: Usage of API entitlements: There is some example of using an API entitlement using the service broker ( https://github.com/SAP-samples/btp-cf-cap-multitenant-susaas/blob/main/docu/2-basic/4-subscribe-cons... ) where you also get a well defined client-id/secret at the end. this solution seems to be preferable as you don't have to do so much manual work. I didn't had the time to try it out yet though.
BR,
Timo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.