Skip to main content
Question

Error: Grant credentials are invalid

  • May 22, 2025
  • 55 replies
  • 107 views

Show first post

55 replies

Forum|alt.badge.img

Hi, this is my client id -> 6jb3em8cpjb932pv33kshv9k0mabr91b

I have selected Custom App and then User Authentication (OAuth 2.0)


Forum|alt.badge.img

Hi, I am also facing this problem. I have set my app to App + Enterprise. My client id is

de2e3ki0d9exfnk9tcppnnyjokbc5ole
 
Thank you in advance

Forum|alt.badge.img

@Namrata: If you would like to use a, client credentials grant as shown in the first post of this thread, you will need to create an app with the auth type JWT with client credentials grant. Otherwise, the only way the invalid_credentials error can surface in OAuth 2 is if the email and password combination entered is invalid. 

@Box User: Your application does not look affected by the bug in question. I'd start by verifying that the client ID and secret are both correct and for the same application. 


Forum|alt.badge.img

Hi, is there a fix for this issue? I am still having this problem

client id: cv90ekrffk0ifdaibsmdnvc9sn246op7

access level: App access only


Forum|alt.badge.img

Hi @Kourtney, can you see if this is why I am getting the same error as the original poster?

My client_id is till47pexrcgp9hpmk5js033ovqfy8uc and my access level is app+enterprise.


Forum|alt.badge.img

Hi @Kourtney.

Is this affecting either:

`client_id=fgs8kfh71vaazeig5xljynv38lerw5ne`

or

`'client_id=g2kcz37610kbrrmko3vimror8btmuzb3`

?

Thanks,
John


Forum|alt.badge.img

Hi @Kourtney

I am wondering if this issue still occurs? My client id is `ov1k33vnmurq7uae7azyq0c4ctxczvvv` and app access is `App Access only`. I tried to access it at 11:59:50 AM NZST (GMT+13). Could you please have a look?

Many thanks,
Kevin


Forum|alt.badge.img

Hi Kourtney,

I am getting the same error --> {"error":"invalid_grant","error_description":"Grant credentials are invalid"}

My client id is ni8daktl7chhwxlt0zovndcefq4e7brc

App Access Level is set to App Access Only.

Can you please look into this?

Thanks,

Kaustav


Forum|alt.badge.img

Same issue :(

 

For the record, the client ID of my application is - y8mb0api5yuxigwwnqsqsr3ex3at5tdm

I am using App only access.


Forum|alt.badge.img

Hi,

I have the same issuse:

{"error":"invalid_grant","error_description":"Grant credentials are invalid"}

I am using App only access.
"client_id=3n7ds3b7tydcwkyze5fmyp4o3r9dbtub"


Forum|alt.badge.img

I am having the exact same issue.  Was anyone here able to get this working?!


Forum|alt.badge.img

I too have the same issue:
Seems like you have a "magical" backend fix 


{"error":"invalid_grant","error_description":"Grant credentials are invalid"}

I am using App only access.
"client_id=upits45b4z5g8oq5tr9fu9xi6096pk7q"


Forum|alt.badge.img

Hi 23426911768,

I have a same trouble.

Detail error: Grant credentials are invalid

Client id: s5r9c4y84iomj2l04n2df36je0j3bmy2

Access level: enterprise access


Forum|alt.badge.img

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.

 


Forum|alt.badge.img

Hi Kourtney,

Is this bug still impacting authentication? I'm seeing the same issue with my application authentication

Client id: y0o81lb26d0zpagq2gnmrwwzukx8px6d

Access level: App Access Only

 


Forum|alt.badge.img

Hi Kourtney,

 

I seem to be facing the same issue.

Client id: cunkexzb80zuhtpo674t2rkzq0tehca8

Access level: App Access Only

 

Thanks!

 

 


Forum|alt.badge.img

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.


Forum|alt.badge.img

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

 


Forum|alt.badge.img

Hey 23426911768, I'm facing same issue! 

 

Client id: cm6x78mf9dibv7nmqykq9y3lsqoal31o

App Access Level: App Access Only

 

Thanks! 


Forum|alt.badge.img

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>"


Forum|alt.badge.img

Hi 23426911768, 

I am also facing this error. I have set my app to App + Enterprise. My client id is

g9tnzhjj7pfcspk1tmostf65jw2hu9l4
 
Thank you in advance

Forum|alt.badge.img

I have the same issue.

chae5tbuin233vb6x1831tohxijxzlfl

 


Forum|alt.badge.img

Hi 23426911768,

Happy New Year!

Seems like I have the same issue.

ClientId: g6pnmu4us74v9sk7b3ttl5v07yodyzf6

Also, how do I select both app + enterprise access level?


BOX__OKD1mGHiL_u2sA5GKxzYGw.png


Forum|alt.badge.img

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).


Forum|alt.badge.img

Hello 

I have same issuse like this post. 
I set up app like this

BOX__1WFclwdDPNbqv4sbSJFzTA.png

my client id is fxwqim58fbefcy9uafv56o497yowjatg

thanks