Skip to content

Commit

Permalink
Remove Deprecated Usages of RemoteJWKSet
Browse files Browse the repository at this point in the history
  • Loading branch information
kwondh5217 committed Dec 18, 2024
1 parent fa288c2 commit a3a8f23
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,12 @@ public List<JWK> get(JWKSelector jwkSelector, SecurityContext context) throws Ke
return Collections.emptyList();
}
synchronized (this) {
jwkSet = fetchJWKSet();
this.jwkSetCache.put(jwkSet);
if(jwkSet == this.jwkSetCache.get()) {
jwkSet = fetchJWKSet();
this.jwkSetCache.put(jwkSet);
} else {
jwkSet = this.jwkSetCache.get();
}
}
if(jwkSet == null) {
return Collections.emptyList();
Expand Down

0 comments on commit a3a8f23

Please sign in to comment.