Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KNOX-3042 - Correct KnoxToken comparator #918

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bonampak
Copy link
Contributor

@bonampak bonampak commented Jun 17, 2024

What changes were proposed in this pull request?

Correct KnoxToken comparator so that TokenStateService.fetchTokens() would return all the tokens, even if their issue time is the same. If two tokens have the same issue time, then one with the smaller token id (uuid) will be revoked.

How was this patch tested?

So far only the existing tests are run and we could add a revocation test to TokenServiceResourceTest.

@lmccay
Copy link
Contributor

lmccay commented Sep 19, 2024

Hi @bonampak - could you add a unit test for this to clearly show what the failure was and that it is fixed and doesn't regress? Sorry for the delayed review here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants