I am implementing a service which needs to get an oauth token to call another service\'s endpoint.
I have an OAuth2RestTemplate set up as folows:
@Bean