Skip to main content

Hi,

I am testing a simple python app leveraging oauth 2.0 client credentials grant, described here: https://github.com/box/box-python-sdk/blob/main/docs/usage/authentication.md#client-credentials-grant.

auth = CCGAuth(
  client_id="YOUR_CLIENT_ID",
  client_secret="YOUR_CLIENT_SECRET",
  enterprise_id="YOUR_ENETRPRISE_ID"
)
 client = Client(auth) print(f'Id of the authenticated user is: {client.user().get().id}')

The app is configured as 'client credentials grant(server authentication)', scoped to 'app access only'. App is authorized and enabled.

Getting error,

 

boxsdk.exception.BoxAPIException: Message: Grant credentials are invalid
Status: 400
Code: invalid_grant

 

Hi Igor, 

Welcome to Box Community! 

I've opened a new case regarding your inquiry and a member from Product Support will get in touch shortly. 

Thanks for posting!