cancel
Showing results for 
Search instead for 
Did you mean: 

Consume CDS CAP oData Service by Workzone UI Integration Card

ckuczera
Participant
0 Kudos
728

Dear Community

I am facing an issue while accessing Information from an oData v4 Service based on CAP CDS by an UI integration card in Workzone.

The service is setup and running as a service instance in BTP. I have created a destination pointing to the CAP service manually to ensure SSO access to the service:

ckuczera_0-1723791596247.png

Till now everything works like a charm. I can access the service via Workzone dynamic destination from the ui integration card:

ckuczera_1-1723791596249.png

But: each time I am deploying the service and the bound uaa instance, the client secret is regenerated and the SSO breaks:

ckuczera_2-1723791596251.png

I need to update the client secret in the destination manually. After updating the client-secret in the destination, SSO is enabled again, and the access is possible.

Is there a way to create / update the destination automatically after deployment of the service or fix the client secret as it is fixed for client id and the certificate?

Is there another way to consume the service I missed?

Addressing the approuter of the service directly leads to a cors exception in the browser and will not be an option.

BR and thanks for your feedback

View Entire Topic
ckuczera
Participant
0 Kudos

@ahmet_pelit in the meantime I am creating the destination objects via mta on subaccount / instance level automatically using destination content option as described below:

ckuczera_0-1736235445119.png

The name given in "sap.cloud.service" is the same as defined in srv module definition section

ckuczera_1-1736235603641.png

The parameter set in package.json are obsolete in that case because the destination is recreated after each deployment automatically!

Hope this helps. In case of question, please send me a private message

BR