Skip to main content
Question

OAuth 2.0 with Client Credentials Grant (Server Authentication) App

  • May 22, 2025
  • 3 replies
  • 43 views

Forum|alt.badge.img

Hello,

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

We are using Following credentials : 

Box Developer App : FolderAccessApp

client_id = kg8c21k6e5w7rgydx3sv3rppva9u4d2n'
client_secret = REDACTED
grant_type = client_credentials
box_subject_type = enterprise
box_subject_type = 823485956

 

Please let us know why we are getting this Error

Thanks

 

3 replies

Forum|alt.badge.img

Still Waiting for your response


Forum|alt.badge.img

Hello, 

Can you please take a look in the developer console > configuration tab for you application and let me know what option you selected for application access? The options are app only or app+enterprise. There is a bug affecting this authentication method and I will need to set this selection on the backend for you. This is what is causing the error. Also, I redacted it above, but please ensure you never share your client secret publicly. This is a value that must be protected like a password. 

Best,

Kourtney, Box Developer Advocate


Forum|alt.badge.img

I am having the similar issue for 

Box Developer App: Accela
client_id = dhyky6ordf88q9wkhss46sj28g3fxdli'
client_secret = REDACTED
grant_type = client_credentials
box_subject_type = user
box_subject_type = REDACTED user ID

App Only