Grant credentials are invalid
Hello,
I cannot successfully authenticate using the client_credentials grant type. I am getting the error, "Grant credentials are invalid." Here is the call that I'm making:
curl --location --request POST 'https://api.box.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=jhct7cubn91eupoppam1jkekd4ym4iu8' \
--data-urlencode 'client_secret=<<CLIENT_SECRET>>' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'box_subject_type=enterprise' \
--data-urlencode 'box_subject_id=<<ENTERPRISE_ID>>'
Any ideas? Thanks!
-
Hi David
Can you confirm that the app you have created has been authorised in the admin console?
https://developer.box.com/guides/authorization/custom-app-approval/#server-authentication-apps
Rgds,
Peter Christensen, Platform Solutions Engineer, Box
投稿コメントは受け付けていません。
コメント
2件のコメント