From 056508dcd7ce5554c16381a69a7f5406df833b4a Mon Sep 17 00:00:00 2001 From: Matthias Kuhr <52661546+MatKuhr@users.noreply.github.com> Date: Tue, 16 Jul 2024 08:43:09 +0200 Subject: [PATCH] Update remote-services.md --- java/cqn-services/remote-services.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/cqn-services/remote-services.md b/java/cqn-services/remote-services.md index c74f5abaa..ded923810 100644 --- a/java/cqn-services/remote-services.md +++ b/java/cqn-services/remote-services.md @@ -465,7 +465,7 @@ OAuth2DestinationBuilder .forTargetUrl("https://example.org") .withTokenEndpoint("https://xsuaa.url") .withClient(clientCredentials, OnBehalfOf.TECHNICAL_USER_CURRENT_TENANT) - .withProperties(Map.of("name", "my-destination")) + .property("name", "my-destination") .build(); ``` @@ -478,6 +478,6 @@ OAuth2DestinationBuilder .forTargetUrl("https://example.org") .withTokenEndpoint("https://xsuaa.url") .withClient(clientCredentials, OnBehalfOf.NAMED_USER_CURRENT_TENANT) - .withProperties(Map.of("name", "my-destination")) + .property("name", "my-destination") .build(); ```