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,
Can you please look into this matter? Having the same issue.
1)
Auth Method: OAuth 2.0 with Client Credentials Grant (Server Authentication)
Client_ID: jte2rx61pddiq337dwk61kpbvulybrh7
App Access Level: App Access Only
2)
Auth Method: OAuth 2.0 with JSON Web Tokens (Server Authentication)
Client_ID: sdc5l30s0gmcgdje1wz6c794bzkbvgdb
App Access Level: App + Enterprise Access
3)
Auth Method: OAuth 2.0 (User or Client Authentication)
Client_ID: ojvskf3qzuzitlhmyxbz1ff3zkhi3c2w
-
Hey Kourtney, I'm facing same issue!
Client id: cm6x78mf9dibv7nmqykq9y3lsqoal31o
App Access Level: App Access Only
Thanks!
-
Hi,
I created app and make client credentials authentication. I am not able to download access the files and folders in admin user account.
and i have one more issue. i shared the folders in app to user as editor he is not able download the files when he trying create access token.
i added him as a collaborator in app i am using this for getting access token.
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"and i am getting this error
{"error":"invalid_grant","error_description":"Grant credentials are invalid"}
can u resolve issue ASAP.
Thanks.
--data-urlencode "box_subject_type=user"
--data-urlencode "box_subject_id=<user id>" -
Hi Kourtney,
I am also facing this error. I have set my app to App + Enterprise. My client id is
g9tnzhjj7pfcspk1tmostf65jw2hu9l4Thank you in advance -
Hi Kourtney,
Happy New Year!
Seems like I have the same issue.
ClientId: g6pnmu4us74v9sk7b3ttl5v07yodyzf6
Also, how do I select both app + enterprise access level? -
This just happened to me as well. Is there a fix that customers can do themselves?
Answer to my problem: https://support.box.com/hc/en-us/community/posts/4407192479379/comments/4407333428243
TLDR; i was trying to use my own userID with app only which causes error. I needed to either use a service account OR an app user (which I did not have permission to add). The documentation should be edited to reflect "user=" does not just mean YOUR user id, but specifically a service account or app user id (if you selected App access only).
Please sign in to leave a comment.
Comments
50 comments