Error: Grant credentials are invalid
Hi,
I have created a Client Grant type application in our company Box application.
When trying to connect to it, I am getting following error:
curl -L -X POST "https://<companyboxurl>/oauth2/token"
-H "Content-Type: application/x-www-form-urlencoded"
--data-urlencode "client_id=<client_id>"
--data-urlencode "client_secret=<client_secret>"
--data-urlencode "grant_type=client_credentials"
--data-urlencode "box_subject_type=enterprise"
--data-urlencode "box_subject_id=<enterprise_id>"
On trying this, I am getting the below error:
{"error":"invalid_grant","error_description":"Grant credentials are invalid"}
Can you please let me know, what I might be missing.
-
Hi Kourtney,
I have a same trouble.
Detail error: Grant credentials are invalid
Client id: s5r9c4y84iomj2l04n2df36je0j3bmy2
Access level: enterprise access
-
Hi Kourtney,
I'm sure being the point person for this issue isn't what you intended many months ago. That being said :)
Detail error: Grant credentials are invalid
Client id: bzst0okcd5ccvrfqpkb9p2qvcfh5otc3
Access level: enterprise access
I'm integrating with a partner and oauth is failing.
-
Hi, I am getting this issue {"error":"invalid_client","error_description":"The client credentials are invalid"}, after passing the correct credentials
Could you please take a look? My client ID is s0nzkvxf3u2h08a0f0rry9j8q7h5bdx1. I don't remember which app type I chose when I set it up, but I think that it was a Custom app with OAuth 2.0
I have a paid account and not getting a reply for over a month is unacceptable.
-
Hi Kourtney,
Thanks for quick response.
I am building a backend application, which will be uploading some files to box folders using BOX API. The application will have no access to website or redirect url.
So achieve this, I am trying the option of client grant, using client id and client secret.
-
Hey Rathin,
Apologies my question was not clear enough-- which option under the configuration tab did you want set for the application access? The options are either app only or app + enterprise. The bug is affecting the selection not being flagged on the backend which is why you are getting this error.
Best,
Kourtney
-
Hey Eric -- Can you please provide me with your application's client ID and which option under the configuration tab you want set for the application access. The options are either app only or app + enterprise.
Best,
Kourtney, Box Developer Advocate
サインインしてコメントを残してください。
コメント
55件のコメント