I am trying to get an access token via RestTemplate.postForEntity().
myRestTemplate.postForEntity(authBaseUrl, request, Object.class);
I have a specific class for it, but let's use now a simple Object as type. It contains an access_token field. It works, because I can get response, but the length if the access tokens (which is a string) is 1196 character long. And I can get the same length in Postman too. But if I use the intelliJ built-in REST client, the length is 1199. Only the token from the intelliJ rest client works (So the longer).
Because I always get a new access token, it is impossible to get the same token twice. How can I debug it? What could be the problem?