Skip to content

Commit acfa24a

Browse files
committed
Fix enclave_id auditlog param name
1 parent dcbf9c2 commit acfa24a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ private Router createRoutesSetup() {
225225
.handler(auth.handleWithAudit(attestationMiddleware.handle(this::handleGetConfig), List.of(Role.OPERATOR)));
226226

227227
if (Optional.ofNullable(ConfigStore.Global.getBoolean("enable_test_endpoints")).orElse(false)) {
228-
router.route(Endpoints.ATTEST_GET_TOKEN.toString()).handler(auth.handleWithAudit(this::handleTestGetAttestationToken, List.of(Role.OPERATOR)));
228+
router.route(Endpoints.ATTEST_GET_TOKEN.toString())
229+
.handler(auth.handleWithAudit(this::handleTestGetAttestationToken, List.of(Role.OPERATOR)));
229230
}
230231

231232
return router;
@@ -313,7 +314,8 @@ private void handleAttestAsync(RoutingContext rc) {
313314

314315
final AttestationResult attestationResult = ar.result();
315316
JsonObject auditUserDetails = rc.get(Audit.USER_DETAILS, new JsonObject());
316-
auditUserDetails.put("enclaveId", attestationResult.getEnclaveId());
317+
auditUserDetails.put("enclave_id", attestationResult.getEnclaveId());
318+
rc.put(Audit.USER_DETAILS, auditUserDetails);
317319
if (!attestationResult.isSuccess()) {
318320
AttestationFailure failure = attestationResult.getFailure();
319321
switch (failure) {

0 commit comments

Comments
 (0)