mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2241 ignore token expiration time in non multinode mode
This commit is contained in:
+1
-1
@@ -1282,7 +1282,7 @@ public class CBEmbeddedSecurityController implements SMAdminController, SMAuthen
|
||||
}
|
||||
userId = dbResult.getString(1);
|
||||
var expiredDate = dbResult.getTimestamp(2);
|
||||
if (Timestamp.from(Instant.now()).after(expiredDate)) {
|
||||
if (application.isMultiNode() && Timestamp.from(Instant.now()).after(expiredDate)) {
|
||||
throw new SMException("Token expired");
|
||||
}
|
||||
sessionId = dbResult.getString(3);
|
||||
|
||||
Reference in New Issue
Block a user