Grant credentials are invalid when using CCGAuth
Hi
I have an authorized App (with Enterprise access) and I'm trying to authenticate via Client Credentials Grant using Python. This is my code so far:
from boxsdk import Client, CCGAuth
auth = CCGAuth(client_id='hdtqun02qporyeiw31rbti8lc1tmnerc',
client_secret=CLIENT_SECRET,
enterprise_id=ENTERPRISE_ID)
client = Client(auth)
print(f'Id of the authenticated user is: {client.user().get().id}')
I get the following error:
BoxAPIException: Message: Grant credentials are invalid
Status: 400
Code: invalid_grant
Request ID: None
Thanks!
Post is closed for comments.
Comments
0 comments