Skip to content

Commit bcecd5c

Browse files
committed
chore: add more logging into token refresh
1 parent 833c12d commit bcecd5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/filter/UserSessionPersistenceFilter.java

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import reactor.core.scheduler.Schedulers;
2424

2525
import java.time.Instant;
26+
import java.util.Objects;
2627
import java.util.Optional;
2728

2829
import static org.lowcoder.api.authentication.util.AuthenticationUtils.toAuthentication;
@@ -110,6 +111,11 @@ private Mono<User> refreshOauthToken(Triple<User, Connection, String> triple) {
110111

111112
OAuth2RequestContext oAuth2RequestContext = new OAuth2RequestContext(triple.getRight(), null, null);
112113

114+
log.info("Refreshing token for user: [ name: {}, id: {} ], orgId: {}, activeConnection: [ authId: {}, name: {}, orgIds: ({})]",
115+
user.getName(), user.getId(),
116+
orgId,
117+
connection.getAuthId(), connection.getName(), StringUtils.join(connection.getOrgIds(), ", "));
118+
113119
return authenticationService
114120
.findAuthConfigByAuthId(orgId, connection.getAuthId())
115121
.switchIfEmpty(Mono.empty())

0 commit comments

Comments
 (0)