File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/com/uid2/core/vertx Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments