Content-Length: 1314 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1501.diff

thub.com diff --git a/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query/ApplicationQueryApiServiceImpl.java b/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query/ApplicationQueryApiServiceImpl.java index 773ebe1e2..53421003e 100644 --- a/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query/ApplicationQueryApiServiceImpl.java +++ b/server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query/ApplicationQueryApiServiceImpl.java @@ -196,9 +196,15 @@ protected Mono> getAuthParamsAndHeadersInheritFromLogin(User user if(authId == null) { return Mono.empty(); } + + String filterAuthId; + if(StringUtils.isEmpty(authId)) filterAuthId = user.getActiveAuthId(); + else { + filterAuthId = authId; + } Optional activeConnectionOptional = user.getConnections() .stream() - .filter(connection -> connection.getAuthId().equals(authId)) + .filter(connection -> connection.getAuthId().equals(filterAuthId)) .findFirst(); if(!activeConnectionOptional.isPresent() || activeConnectionOptional.get().getAuthConnectionAuthToken() == null) { return Mono.empty();








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1501.diff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy