cap-js / audit-logging

CDS plugin providing integration to the SAP Audit Log service as well as out-of-the-box personal data-related audit logging based on annotations.
https://cap.cloud.sap/docs/guides/data-privacy
Apache License 2.0
4 stars 1 forks source link

Audit Log not working in Multitenancy #83

Closed sanjayduttpandey closed 4 months ago

sanjayduttpandey commented 5 months ago

Hi,

I am implementing Audit-log for one of my project using @cap-js/audit-logging. It is working fine for dedicated tenant. But in case of SaaS app, its not working. As per standard document, We need to do following configuration for Saas app.

When providing an SaaS application, return the xsappname of the service instance's UAA instance (cds.env.requires['audit-log'].credentials.uaa.xsappname) as a dependency of your SaaS application, see SaaS Service Dependencies.

Could you please provide sample how to add cds.env.requires['audit-log'].credentials.uaa.xsappname in package.json as SaaS dependency.

Thanks

johannes-vogel commented 4 months ago

Hi,

it's documented here: https://cap.cloud.sap/docs/guides/multitenancy/mtxs#saas-provisioning-config

Best, Johannes