smolnar82 commented on code in PR #1451:
URL: https://github.com/apache/knox/pull/1451#discussion_r4268504936
##########
gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/DefaultTokenAuthorityService.java:
##########
@@ -280,26 +293,49 @@ private boolean verifyTokenUsingHMAC(JWT token) throws
TokenServiceException {
@Override
public boolean verifyToken(JWT token, String jwksUrl, String algorithm,
JOSEObjectTypeVerifier<SecurityContext> typeVerifier) throws
TokenServiceException {
+ return verifyToken(token, jwksUrl, algorithm, typeVerifier, null);
+ }
+
+ @Override
+ public boolean verifyToken(JWT token, Set<URI> jwksUrls, String algorithm,
JOSEObjectTypeVerifier<SecurityContext> typeVerifier) throws
TokenServiceException {
+ return verifyToken(token, jwksUrls, algorithm, typeVerifier, null);
+ }
+
+ @Override
+ public boolean verifyToken(JWT token, Set<URI> jwksUrls, String algorithm,
JOSEObjectTypeVerifier<SecurityContext> typeVerifier,
+ IssuerJwksTrust jwksTrust) throws
TokenServiceException {
+ boolean verified = false;
+ for(final URI url : jwksUrls) {
Review Comment:
Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]