diff --git a/pom.xml b/pom.xml
index adf3c3a7..365a3f92 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.uid2
uid2-shared
- 9.3.0
+ 9.3.2-alpha-225-SNAPSHOT
${project.groupId}:${project.artifactId}
Library for all the shared uid2 operations
https://github.com/IABTechLab/uid2docs
diff --git a/src/main/java/com/uid2/shared/attest/AttestationResponseHandler.java b/src/main/java/com/uid2/shared/attest/AttestationResponseHandler.java
index 183a4f29..7117fe99 100644
--- a/src/main/java/com/uid2/shared/attest/AttestationResponseHandler.java
+++ b/src/main/java/com/uid2/shared/attest/AttestationResponseHandler.java
@@ -260,6 +260,9 @@ private void setOptoutJWTFromResponse(JsonObject responseBody) {
if (jwt == null) {
LOGGER.info("Optout JWT not received");
} else {
+ if (jwt.isBlank()) {
+ LOGGER.info("Optout JWT is blank. App version: {}", this.appVersion.getAppVersion());
+ }
LOGGER.info("Optout JWT received");
this.optOutJwt.set(jwt);
}
@@ -270,6 +273,9 @@ private void setCoreJWTFromResponse(JsonObject responseBody) {
if (jwt == null) {
LOGGER.info("Core JWT not received");
} else {
+ if (jwt.isBlank()) {
+ LOGGER.info("Core JWT is blank. App version: {}", this.appVersion.getAppVersion());
+ }
LOGGER.info("Core JWT received");
this.coreJwt.set(jwt);
}
diff --git a/src/main/java/com/uid2/shared/middleware/AttestationMiddleware.java b/src/main/java/com/uid2/shared/middleware/AttestationMiddleware.java
index 4f6862e9..6e71fc2a 100644
--- a/src/main/java/com/uid2/shared/middleware/AttestationMiddleware.java
+++ b/src/main/java/com/uid2/shared/middleware/AttestationMiddleware.java
@@ -105,13 +105,15 @@ public void handle(RoutingContext rc) {
} else {
if (this.enforceJwt) {
LOGGER.info("JWT is required, but was not received. Attestation validation failed. SiteId: {}, Name: {}, Contact: {}", operatorKey.getSiteId(), operatorKey.getName(), operatorKey.getContact());
+ } else {
+ LOGGER.info("JWT is {} but is not required. SiteId: {}, Name: {}, Url: {}", jwt == null ? "null" : "blank", operatorKey.getSiteId(), operatorKey.getName(), rc.request().uri());
}
}
}
}
if (success && !isJwtValid && this.enforceJwt) {
- LOGGER.info("JWT validation has failed.");
+ LOGGER.error("JWT validation has failed.");
success = false;
} else if (success && !isJwtValid && !this.enforceJwt) {
LOGGER.info("JWT validation has failed, but JWTs are not being enforced.");