Ask a Question
Back to All

Three-legged auth error

Hey guys,

I registered a new dev account and created a new pair of id/secret.

Now I'm experiencing a problem with 3-legged auth.

From my app I'm trying to authenticate a user account which I created in a sandbox. I'm able to get to the point where I'm provided with a request token but the process fails at the exchange for access token.

  1. I initiate the access call from the browser by clicking a veem button.
  2. I see the screen " would like access to your Veem data. Please select an account: ...." with the account selected.
  3. I click Authorize.
  4. At this point I even able to hit a breakpoint in my code where I receive a callback.
  5. At this point my code sends a request to https://sandbox-api.veem.com/oauth/token with Sprint RestTemplate and I get absolutely not descriptive error which is an empty body with 401 http status in the response.

org.springframework.web.client.HttpClientErrorException: 401 null

Can you please advise?