spring-security/oauth2/oauth2-client
Phil Clay 9520e3a1c0 Make UnAuthenticatedServerOAuth2AuthorizedClientRepository threadsafe
Previously UnAuthenticatedServerOAuth2AuthorizedClientRepository used a HashMap for storing OAuth2AuthorizedClients.
UnAuthenticatedServerOAuth2AuthorizedClientRepository and its HashMap are potentially accessed by multiple threads without any synchronization.
Since HashMap is not threadsafe itself, this makes UnAuthenticatedServerOAuth2AuthorizedClientRepository not threadsafe.

Now UnAuthenticatedServerOAuth2AuthorizedClientRepository uses a ConcurrentHashMap for storing OAuth2AuthorizedClients.
Since ConcurrentHashMap is threadsafe, UnAuthenticatedServerOAuth2AuthorizedClientRepository will now be threadsafe as well.

Fixes gh-6717
2019-04-01 17:03:58 -04:00
..
src Make UnAuthenticatedServerOAuth2AuthorizedClientRepository threadsafe 2019-04-01 17:03:58 -04:00
spring-security-oauth2-client.gradle Add Test<DomainObject>s For OAuth2 2018-08-19 21:08:28 -05:00