Unable to get access using Box SDK when the authentication method is Client Credentials Grant
CompletedHi Team,
I create a Custom App and its authentication method is
Client Credentials Grant. And It throws this error message while trying to access box using SDK.
com.box.sdk.BoxAPIResponseException: The API returned an error code [400] unauthorized_client - The "box_subject_type" value is unauthorized for this client_id
The SDK
BoxCCGAPIConnection api = BoxCCGAPIConnection.applicationServiceAccountConnection(
"client_id",
"client_secret",
"enterprise_id"
);
BoxCCGAPIConnection api = BoxCCGAPIConnection.userConnection(
"xxxx",
"xxx",
"xxxx"
);
BoxFolder root = BoxFolder.getRootFolder(api);
Please sign in to leave a comment.
Comments
2 comments