The Community is undergoing a major upgrade. Find out more, ask us questions or share your thoughts here.
Forum Discussion
CySDeveloper
3 years agoExplorer | Level 3
List files in app folder of user
Hi,
Please help as I am sort of stuck...
I am developing a dropbox app to load files in to our system that have been dropped into an application folder by some user.
So when configuring this th...
- 3 years ago
Any access token gives access to particular user content to be processed with particular access rights. It doesn't matter what type of client you have used (web or other).
Available content is restricted to selected application access (to entire account or to application folder only). Access rights are restricted to the selected scopes, if any. That's it.
Classical access token, used in API calls, doesn't need any additional application authentication despite of Dropbox always knows what application the particular token has been issued to. It denotes an user always. If you mean refresh token, then on refresh the application needs to authenticate again. If you are using SDK, normally you shouldn't care for that. Your SDK will take care.
CySDeveloper wrote:...
Or, and this might be an answer to my question, do i get a special access-token returned that is specifically for the application id/user combination?
To be honest, I'm not sure what exactly you mean here. Does the above cover your question?
CySDeveloper
Explorer | Level 3
Hi thank you for your response,
I understand the option that you have given, but it is not what i want.
If i keep the accesstoken/refreshtoken then i will have full access like the user, whereas I have asked them to accept my application with a specific set of minimized rights. So now I want to access the application folder as the application and not as that user.
Do you have any ideas?
Tnx
Здравко
3 years agoLegendary | Level 20
CySDeveloper wrote:...
If i keep the accesstoken/refreshtoken then i will have full access like the user, whereas I have asked them to accept my application with a specific set of minimized rights....
Not exactly. It depends on what kind of rights were given to the particular application. If the rights are to the application folder only, that folder is the root you can see and nothing else. You can't do anything outside the application folder. What kind of application you have created? Is it restricted to application folder or not?! Also what kind of scopes were associated to the application? (they are describing what the application can do)
CySDeveloper wrote:... So now I want to access the application folder as the application and not as that user.
...
As far as I know Dropbox doesn't provide such possibility.
- CySDeveloper3 years agoExplorer | Level 3
It is a scopedapp/appfolder (which is all I need).
scopes are file.metadata.read, file.metadata.write, files.content.read, files.content.write
If this is not possible then the whole application approach in dropbox does not make sense, as i always connect with full user rights.
So i believe there must be a way...
- Здравко3 years agoLegendary | Level 20
CySDeveloper wrote:It is a scopedapp/appfolder (which is all I need).
..., as i always connect with full user rights.
...
🤔 The above are mutually exclusive. You are restricted to a single folder, something not applied to the corresponding user (with full rights).
CySDeveloper wrote:...
So i believe there must be a way...
I believe this this will be available some day, but not right now... unfortunately.
- CySDeveloper3 years agoExplorer | Level 3
yes i know they are mutually exclusive, my sentence was a bit convoluted.
It was trying to say that it made no sense to have an app with restricted access settings if in the end if the app wants to do anything with files in the application folder (of a user that installed the app and agreed to the restricted access) the app must connect using the access token of the user that was captured when he agreed to install the app and thus with FULL access to the user account.
Are you sure that all dropbox apps in the end access the files in the application folder with FULL access rights??
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!