Skip to content

Commit 49ab90f

Browse files
logging expiry when creating jwt token
1 parent 0c04300 commit 49ab90f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/uid2/core/service/OperatorJWTTokenProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private String getJWTToken(String issuer, String audience, String operatorKey, S
8181
claims.put("enclaveType", enclaveType);
8282
claims.put("operatorVersion", operatorVersion);
8383

84-
LOGGER.debug(String.format("Creating token with: Issuer: %s, Audience: %s, Roles: %s, SiteId: %s, EnclaveId: %s, EnclaveType: %s, OperatorVersion: %s", audience, issuer, roleString, siteId, enclaveId, enclaveType, operatorVersion));
84+
LOGGER.info(String.format("Creating token with: Issuer: %s, Audience: %s, Roles: %s, SiteId: %s, EnclaveId: %s, EnclaveType: %s, OperatorVersion: %s, Expiry: %s", audience, issuer, roleString, siteId, enclaveId, enclaveType, operatorVersion, expiresAt.getEpochSecond()));
8585
return this.jwtTokenProvider.getJWT(expiresAt, this.clock.instant(), claims);
8686
}
8787
}

src/main/java/com/uid2/core/vertx/CoreVerticle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ private void handleAttestAsync(RoutingContext rc) {
353353
return;
354354
}
355355

356-
logger.info("attestation successful for SiteId: {}, Operator name: {}, protocol: {}, JWT token expiry: {}", operator.getSiteId(), operator.getName(), protocol, encryptedAttestationToken.getExpiresAt().getEpochSecond());
356+
logger.info("attestation successful for SiteId: {}, Operator name: {}, protocol: {}", operator.getSiteId(), operator.getName(), protocol);
357357
Success(rc, responseObj);
358358
});
359359
} catch (AttestationService.NotFound e) {

0 commit comments

Comments
 (0)