File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/com/uid2/operator/vertx Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 33import com .uid2 .shared .auth .IAuthorizable ;
44import com .uid2 .shared .auth .OperatorKey ;
55import com .uid2 .shared .middleware .AuthMiddleware ;
6+ import com .uid2 .shared .auth .ClientKey ;
67import io .vertx .core .Handler ;
78import io .vertx .core .http .HttpClosedException ;
89import io .vertx .core .http .HttpServerResponse ;
@@ -22,7 +23,11 @@ public void handle(RoutingContext ctx) {
2223 String url = ctx .normalizedPath ();
2324 Throwable t = ctx .failure ();
2425
25- final String contact = AuthMiddleware .getAuthClient (ctx ).getContact ();
26+ String contact = "unknown" ;
27+ final ClientKey clientKey = (ClientKey ) AuthMiddleware .getAuthClient (ctx );
28+ if (clientKey != null ) {
29+ contact = clientKey .getContact ();
30+ }
2631
2732 if (t != null ) {
2833 // Because Vert.x swallows stack traces so cannot log stack trace
You can’t perform that action at this time.
0 commit comments