Skip to content

Conversation

@amarkevich
Copy link
Contributor

No description provided.

if (keyId.equals(kid)) {
jwkHolder = h;
} else {
jsonWebKeys.putIfAbsent(kid, h);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it hard to follow the logic in this method. Why is the JwkHolder added to jsonWebKeys for kid if the key ids don't match (and then removed on line 77?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added new jwk only; at L77 old keys removed
this case covered in JwsJwksJwtAccessTokenValidatorTest

@amarkevich amarkevich merged commit c287485 into apache:master Mar 31, 2020
@amarkevich amarkevich deleted the JwsJwksJwtAccessTokenValidator branch March 31, 2020 08:41
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