Skip to main content

"Grant credentials are invalid"

  • March 25, 2024
  • 4 replies
  • 238 views
"Grant credentials are invalid"

I have a server side application which needs to upload files to box


I have it set up with Client Credentials Grant and using the OAuth 2.0 with Client Credentials Grant (Server Authentication)



But when I try to make the curl request with Client ID kox474mes4cugrj929i4kh5enokukmlt


I get the Grant credentials are invalid. Looking around, it seems to be related to a recent change where custom apps are not immediately approved. This is for a free account while we are trying to get it set up and working.

Did this topic help you find an answer to your question?

4 replies

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • March 28, 2024

Hi @dkimura ,


Looks like your application is not authorized…


In the developer console, for your application, under the authorization tab, submit your app for review:



Then on the administrator console, in apps, under the custom apps manager, authorize your app:



Let us know if this worked.


Cheers


  • Author
  • New Participant
  • 3 replies
  • April 1, 2024

There doesn’t seem to be an Authorization tab for me to click on.



rbarbosa Box
  • Developer Advocate
  • 553 replies
  • April 2, 2024

Hi @dkimura ,


I see what is happening here.


You either have a free account or a basic account, that does not include the administration console necessary to approve the app.


We do have a free developer account you can use, otherwise you’re stuck with OAuth 2.0 client side authentication.


Help me understand if this account is something you are using just for testing and it is ok to create a new free developer account for your testing.


If not we can try a few other workarounds.


Let us know


Best regards


  • Author
  • New Participant
  • 3 replies
  • April 3, 2024

The account is one that is being used to store documents outside of a testing environment. If we need to sign up for an account outside of a free/basic account, which plan gives the appropriate access that we can create our integration?


We don’t need to store many documents as most of our integration is to shared folders that clients has given us links to. So, ideally we’d stay on the Free or Basic account.


Thanks!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings