The documentation for provision grant says near the bottom of the page: https://developers.box.com/provision/
"If this token is expired or lost after the initial provisioning request, you can send an authorization code grant to https://api.box.com/oauth2/token with these additional parameters:" (scope, folder). "Additional parameters" to what exactly?
I've tried the following:
https://app.box.com/api/oauth2/token (POST)
grant_type authorization_code
client_id <app id>
client_secret <app secret>
username [email protected]
scope folder_readwrite
folder_id app_folder
code ???
which says "code" is needed. I've tried about everything as the value of "code", but can't seem to make it happy. It just says "Auth code doesn't exist or is invalid for the client", which I know exists, as the provision grant tells me it does. If someone could write the canonical list of parameters and what is expected it would be appreciated!
I realize that the "normal" box authorization web-flow involves a code, but there is no code associated with provision grants. I need this to work, because I've seen the box api error, even though the user gets successfully set-up with the app folder.