diff --git a/dqops/src/main/java/com/dqops/core/dqocloud/login/InstanceCloudLoginServiceImpl.java b/dqops/src/main/java/com/dqops/core/dqocloud/login/InstanceCloudLoginServiceImpl.java index 389054b640..4ca9817c53 100644 --- a/dqops/src/main/java/com/dqops/core/dqocloud/login/InstanceCloudLoginServiceImpl.java +++ b/dqops/src/main/java/com/dqops/core/dqocloud/login/InstanceCloudLoginServiceImpl.java @@ -135,7 +135,7 @@ public String getTicketGrantingTicket() { synchronized (this.lock) { Instant keyLatestExpiresAt = Instant.now().plus(15, ChronoUnit.MINUTES); if (this.grantingTicketPayloadSignedObject == null || - this.grantingTicketPayloadSignedObject.getTarget().getExpiresAt().isAfter(keyLatestExpiresAt)) { + this.grantingTicketPayloadSignedObject.getTarget().getExpiresAt().isBefore(keyLatestExpiresAt)) { DqoUserPrincipal userPrincipalForAdministrator = this.principalProvider.createLocalInstanceAdminPrincipal(); UserDomainIdentity userIdentity = userPrincipalForAdministrator.getDataDomainIdentity();