diff --git a/cloudplatform/connectivity-oauth/src/test/java/com/sap/cloud/sdk/cloudplatform/connectivity/BtpServicePropertySuppliersTest.java b/cloudplatform/connectivity-oauth/src/test/java/com/sap/cloud/sdk/cloudplatform/connectivity/BtpServicePropertySuppliersTest.java index b86fde18b..6afd3fef1 100644 --- a/cloudplatform/connectivity-oauth/src/test/java/com/sap/cloud/sdk/cloudplatform/connectivity/BtpServicePropertySuppliersTest.java +++ b/cloudplatform/connectivity-oauth/src/test/java/com/sap/cloud/sdk/cloudplatform/connectivity/BtpServicePropertySuppliersTest.java @@ -587,12 +587,17 @@ void testClientIdWithTenantId() "urn:sap:identity:consumer:clientid:client-id:apptid:tenant-id", "app_tid", PROVIDER_TENANT_ID)); + /* + * Note: having two different apptid values here is intentional. + * The first one is the tenant ID used by the target system. + * The second one is the tenant ID of the current application. + * While they can be the same, they do not have to be. + */ } @Test void testProviderClientId() { - @SuppressWarnings( "deprecation" ) final ServiceBindingDestinationOptions options = ServiceBindingDestinationOptions .forService(BINDING) @@ -622,7 +627,6 @@ void testProviderClientId() @Test void testProviderClientIdWithTenantId() { - @SuppressWarnings( "deprecation" ) final ServiceBindingDestinationOptions options = ServiceBindingDestinationOptions .forService(BINDING) diff --git a/release_notes.md b/release_notes.md index 20ffb075e..0735e97f9 100644 --- a/release_notes.md +++ b/release_notes.md @@ -13,6 +13,8 @@ ### ✨ New Functionality - Add support for using the Zero Trust Identity Service (ZTIS) on Kyma by detecting the [well-known environment variable `SPIFFE_ENDPOINT_SOCKET`](https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE_Workload_Endpoint.md#4-locating-the-endpoint). +- Add support for explicitly passing the `clientid` of the target system when using the IAS App2App authentication flow. + Use the new methods `withProviderClient(clientid)` and `withProviderClient(clientid, apptid)` under `BtpServiceOptions.IasOptions`. ### 📈 Improvements