Skip to content

Commit 6a0b587

Browse files
authored
fixes #2341 Dynamic loading jwk with kid is not working if multiple serviceIds are provided (#2342)
1 parent edce763 commit 6a0b587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security-config/src/main/java/com/networknt/security/JwtVerifier.java

+1
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ private JsonWebKey getJsonWebKeySetForToken(String kid, Object requestPathOrJwkS
740740
for(String serviceId: jwkServiceIds) {
741741
config = getJwkConfig(clientConfig, serviceId);
742742
jwk = retrieveJwk(kid, config);
743+
if(jwk != null) break;
743744
}
744745
} else {
745746
throw new ConfigException("requestPathOrJwkServiceIds must be a string or a list of strings");

0 commit comments

Comments
 (0)