box api - What does "error_description:access_denied" mean in BoxServerException -


i ma trying refresh access token using refresh token have following exception:

com.box.boxjavalibv2.exceptions.boxserverexception: {"error":"access_denied","error_description":"access denied"}

please tell me wrong request , why getting access_denied

if send invalid refresh token, get

caused by: com.box.boxjavalibv2.exceptions.boxserverexception: {"error":"invalid_grant","error_description":"invalid refresh token"}

i want know reasons access_denied.

------------------- relevant code ------------------

boxoauthrequestobject requestobject = boxoauthrequestobject.refreshoauthrequestobject(refreshtoken, clientid,         clientsecret); try {     // authenticate new token     boxoauthtoken boxoauthtoken = client.getoauthmanager().refreshoauth(requestobject); 

i've received error when attempting call api methods accessed "manage enterprise" methods, while application defined "read , write files , folders".

make sure set appropriate checkbox @ application level.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -