Skip to content

Commit bfa1da7

Browse files
committed
Ticket granting ticket expires calculated differently.
1 parent 27b7018 commit bfa1da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dqops/src/main/java/com/dqops/core/dqocloud/login/InstanceCloudLoginServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public String getTicketGrantingTicket() {
135135
synchronized (this.lock) {
136136
Instant keyLatestExpiresAt = Instant.now().plus(15, ChronoUnit.MINUTES);
137137
if (this.grantingTicketPayloadSignedObject == null ||
138-
this.grantingTicketPayloadSignedObject.getTarget().getExpiresAt().isAfter(keyLatestExpiresAt)) {
138+
this.grantingTicketPayloadSignedObject.getTarget().getExpiresAt().isBefore(keyLatestExpiresAt)) {
139139
DqoUserPrincipal userPrincipalForAdministrator = this.principalProvider.createLocalInstanceAdminPrincipal();
140140

141141
UserDomainIdentity userIdentity = userPrincipalForAdministrator.getDataDomainIdentity();

0 commit comments

Comments
 (0)