From 008d8ac24398b01f162bd8da258be213d44243b2 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Mon, 14 Jul 2025 18:45:10 +0200
Subject: [PATCH] correct response treatment of openConnectionCallback
---
federation/src/client/1_0/AuthenticationClient.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/federation/src/client/1_0/AuthenticationClient.ts b/federation/src/client/1_0/AuthenticationClient.ts
index 8caad2343..104d62626 100644
--- a/federation/src/client/1_0/AuthenticationClient.ts
+++ b/federation/src/client/1_0/AuthenticationClient.ts
@@ -33,8 +33,9 @@ export class AuthenticationClient {
logger.debug('openConnectionCallback with endpoint', this.endpoint, args)
try {
const { data } = await this.client.rawRequest(openConnectionCallback, { args })
+ logger.debug('after openConnectionCallback: data:', data)
- if (data && data.openConnectionCallback) {
+ if (!data || !data.openConnectionCallback) {
logger.warn('openConnectionCallback without response data from endpoint', this.endpoint)
return false
}