Skip to main content
Question

OAUTH setup - unauthorized_client ??

  • May 22, 2025
  • 1 reply
  • 31 views

Forum|alt.badge.img

Good Morning

I am struggling to Configure Box.com access codes and thank anybody helping me.

My situation is the following:

I generated my exchange code.

Within a second, I request an access code:

POST https://api.box.com/oauth2/token 
grant_type=authorization_code
code=EXCHANGECODE
client_id=CLIENTID
client_secret=CLIENTSECRET

and it fails as I receive the following error message:

{ "error": "unauthorized_client", "error_description": "The grant type is unauthorized for this client_id" }
 
Kind regards,
 
Pierre

1 reply

Forum|alt.badge.img

Solved - I had a second application active / I thought I had suppressed it and I did not. This one was of the wrong OAUTH type (customer with grant)