Skip to content

Commit

Permalink
#132 - Fix this JWTVerificationkeyResolver.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrmiller committed Jul 14, 2020
1 parent 5bd3321 commit da71fc5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public class JWTVerificationkeyResolver implements VerificationKeyResolver {
public JWTVerificationkeyResolver(Collection<JWTIssuerConfig> issuerConfigs, boolean requireIssuer) {
this.requireIssuer = requireIssuer;
issuerConfigs.forEach(ic -> {
this.issuerConfigs.put(ic.getIss(), ic);
if (ic.getIss() != null && ic != null) {
this.issuerConfigs.put(ic.getIss(), ic);
}
});
}

Expand Down

0 comments on commit da71fc5

Please sign in to comment.