You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2022. It is now read-only.
They way, how OAuth2RestTemplate stores access tokens in its OAuth2ClientContext context field and finally passes it to the authenticator, that writes the auth header to the request, is not thread safe.
That means, using a single instance of OAuth2RestTemplate from multiple threads in parallel might lead to wrong access tokens being send around.
The original RestTemplate is thread safe, so I was surprised, that this one is not.