Skip to content

Commit 76e6dd5

Browse files
committed
Run audit log immediately
1 parent 8c011fb commit 76e6dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/uid2/admin/auth/OktaAuthProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public AuthenticationHandler createAuthHandler(Vertx vertx, Route callbackRoute)
7474
authHandler.extraParams(new JsonObject(String.format("{\"scope\":\"%s\"}", String.join(" ", this.scopes))));
7575
authHandler.setupCallback(callbackRoute);
7676
callbackRoute.handler(ctx -> {
77-
ctx.addBodyEndHandler(v -> this.audit.log(ctx, new AuditParams()));
77+
this.audit.log(ctx, new AuditParams());
78+
ctx.next();
7879
});
7980
return authHandler;
8081
}

0 commit comments

Comments
 (0)