Any way to authenticate and upload a file via API to a free individual account except by using a developer token
I can successfully upload a file to my personal Box account using the node sdk and a developer token for Basic Client Authentication. I made it work with a JWT app and with a Client Credentials Grant (Server Authentication) app.
But after hours of attempts, I cannot get any other method to work. They all seem to either need an enterprise ID, or require me to authorize an app using the developer console on screens that do not seem to exist at the individual tier level. Is there any way to authenticate to an individual tier account without using a developer token?
Here are some ways I have tried:
//const boxClient = sdk.getCCGClientForUser('25096219931') //user id from app // Auth Error: Grant credentials are invalid [400 Bad Request] invalid_grant - Grant credentials are invalid
//const boxClient = sdk.getCCGClientForUser('mxxxxins1@gmail.com');// user email from app //Auth Error: Grant credentials are invalid [400 Bad Request] invalid_grant
//const boxClient = sdk.getCCGClientForUser('2011287')//service account from the url string of the app in the devlopment portal Auth Error: Grant credentials are invalid [400 Bad Request] invalid_grant - Grant credentials are invalid
//const boxClient = sdk.getAppAuthClient('user', '25096219931'); //[400 Bad Request] invalid_grant - Please check the 'sub' claim. The 'sub' specified is invalid.
const boxClient = sdk.getBasicClient('DmvDcfNgKuK2suxnpyQiPIDI7vXUHwh1');
//this is the only way that works but no way to refresh this token
.
-
Hi Mike,
Please read this forum post for some clarity.
We apologize for the inconvenience.
サインインしてコメントを残してください。
コメント
1件のコメント