Skip to content

Commit 34b2af7

Browse files
committed
Change order of the logging
1 parent 76e6dd5 commit 34b2af7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ public AuthenticationHandler createAuthHandler(Vertx vertx, Route callbackRoute)
7272
);
7373
OAuth2AuthHandler authHandler = OAuth2AuthHandler.create(vertx, oktaAuth, this.config.getString(OKTA_CALLBACK));
7474
authHandler.extraParams(new JsonObject(String.format("{\"scope\":\"%s\"}", String.join(" ", this.scopes))));
75-
authHandler.setupCallback(callbackRoute);
7675
callbackRoute.handler(ctx -> {
76+
System.out.println("AUDIT START - Path: " + ctx.request().path());
77+
System.out.println("Query: " + ctx.request().query());
7778
this.audit.log(ctx, new AuditParams());
7879
ctx.next();
7980
});
81+
authHandler.setupCallback(callbackRoute);
8082
return authHandler;
8183
}
8284

0 commit comments

Comments
 (0)