From 75a9c29ca63dc23d1a5a54c8d90b0661e0f2f063 Mon Sep 17 00:00:00 2001 From: Cody Constine Date: Mon, 18 Nov 2024 13:37:18 -0700 Subject: [PATCH 1/3] Added site name as contact for CSTG --- src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java b/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java index f64405588..febbbd931 100644 --- a/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java +++ b/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java @@ -357,6 +357,7 @@ private void handleClientSideTokenGenerateImpl(RoutingContext rc) throws NoSuchA null, TokenResponseStatsCollector.Endpoint.ClientSideTokenGenerateV2, TokenResponseStatsCollector.ResponseStatus.BadSubscriptionId, siteProvider, platformType); return; } + rc.data().put("api-contact", siteProvider.getSite(clientSideKeypair.getSiteId()).getName()); if(clientSideKeypair.isDisabled()) { SendClientErrorResponseAndRecordStats(ResponseStatus.Unauthorized, 401, rc, "Unauthorized", From c20cc48601fca945a2ffde48ab68129e23b8a0ec Mon Sep 17 00:00:00 2001 From: Cody Constine Date: Mon, 18 Nov 2024 14:03:34 -0700 Subject: [PATCH 2/3] Added site ID --- src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java b/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java index febbbd931..7cba5a866 100644 --- a/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java +++ b/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java @@ -357,7 +357,8 @@ private void handleClientSideTokenGenerateImpl(RoutingContext rc) throws NoSuchA null, TokenResponseStatsCollector.Endpoint.ClientSideTokenGenerateV2, TokenResponseStatsCollector.ResponseStatus.BadSubscriptionId, siteProvider, platformType); return; } - rc.data().put("api-contact", siteProvider.getSite(clientSideKeypair.getSiteId()).getName()); + rc.data().put(AuthMiddleware.API_CONTACT_PROP, siteProvider.getSite(clientSideKeypair.getSiteId()).getName()); + rc.put(com.uid2.shared.Const.RoutingContextData.SiteId, clientSideKeypair.getSiteId()); if(clientSideKeypair.isDisabled()) { SendClientErrorResponseAndRecordStats(ResponseStatus.Unauthorized, 401, rc, "Unauthorized", From b2e30d957015b5ff639dc836ec93dcf88e949d84 Mon Sep 17 00:00:00 2001 From: Cody Constine Date: Tue, 19 Nov 2024 10:13:54 -0700 Subject: [PATCH 3/3] Removing API contact --- src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java b/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java index 7cba5a866..c3784ae38 100644 --- a/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java +++ b/src/main/java/com/uid2/operator/vertx/UIDOperatorVerticle.java @@ -357,7 +357,6 @@ private void handleClientSideTokenGenerateImpl(RoutingContext rc) throws NoSuchA null, TokenResponseStatsCollector.Endpoint.ClientSideTokenGenerateV2, TokenResponseStatsCollector.ResponseStatus.BadSubscriptionId, siteProvider, platformType); return; } - rc.data().put(AuthMiddleware.API_CONTACT_PROP, siteProvider.getSite(clientSideKeypair.getSiteId()).getName()); rc.put(com.uid2.shared.Const.RoutingContextData.SiteId, clientSideKeypair.getSiteId()); if(clientSideKeypair.isDisabled()) {