Skip to content

Commit

Permalink
chore(jans-auth-server): token statuses VALID - 0, INVALID - 1
Browse files Browse the repository at this point in the history
#8562
Signed-off-by: YuriyZ <yzabrovarniy@gmail.com>
  • Loading branch information
yuriyz committed Jun 25, 2024
1 parent 36a453e commit 17b1431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void removeSilently(TokenEntity token) {
}

statusListPool.execute(() -> {
statusListIndexService.updateStatusAtIndex(token.getAttributes().getStatusListIndex(), TokenStatus.REVOKED);
statusListIndexService.updateStatusAtIndex(token.getAttributes().getStatusListIndex(), TokenStatus.INVALID);
});
} catch (Exception e) {
log.error(e.getMessage(), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @author Yuriy Z
*/
public enum TokenStatus {
CREATED(0),
REVOKED(1);
VALID(0),
INVALID(1);

private final int value;

Expand Down

0 comments on commit 17b1431

Please sign in to comment.