Skip to content

Commit

Permalink
Merge pull request #17396 from pascalgrimaud/oauth2-fix-refresh-token…
Browse files Browse the repository at this point in the history
…-concurrency

Fix OAuth2 refresh token with concurrency
  • Loading branch information
DanielFran authored Dec 23, 2021
2 parents 4108d62 + eb39096 commit 22c4e73
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import org.springframework.web.context.request.ServletRequestAttributes;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;

Expand All @@ -54,7 +54,7 @@ public class CustomClaimConverter implements Converter<Map<String, Object>, Map<

private final ClientRegistration registration;

private final Map<String, ObjectNode> users = new HashMap<>();
private final Map<String, ObjectNode> users = new ConcurrentHashMap<>();

public CustomClaimConverter(ClientRegistration registration, RestTemplate restTemplate) {
this.registration = registration;
Expand Down

0 comments on commit 22c4e73

Please sign in to comment.