We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Andika Scofield
4 years agoExplorer | Level 4
Error (400) when open dropbox (request URL)
Hello,
I found a problem when trying to request URL.
I have two apps in dropbox:
1. App 1 (status=production), use Permission type = Full Dropbox
2. App 2 (status=development), use Permission type = Scope App
I've implemented short-lived token in App 2 (Scope App). I add all scope in scope requests according to permission in App 2.
DBScopeRequest *scopeRequest = [[DBScopeRequest alloc] initWithScopeType:DBScopeTypeUser scopes:@[@"account_info.read", "files.metadata.write", "files.metadata.read", "files.content.write", "files.content.read", "sharing.write", "sharing.read", "file_requests.write", "file_requests.read", "contacts.write", "contacts.read"] includeGrantedScopes:NO];
When use the code above, my app success to show the login page.
But when I use the code above to App 1 (Full Dropbox). I get the error page ("scope": must be at most 0 characters, got 192)
Why that's happened? is it because App 1 is already "full dropbox"?
I've tried to delete all scope in scope requests, and can open sign in page. Can you explain?
Yes, Dropbox is in process of migrating all apps to use scopes. This is a backwards compatible migration; scoped apps can use all of the same functionality as non-scoped apps. Scopes just offer more granularity in the control over which functionality you enable for the app. You can find more information on the migration in this blog post.
7 Replies
- Greg-DB4 years ago
Dropbox Community Moderator
You can only specify 'scopes' when using an app that is registered as a "scoped" app. Your app 1 is not scoped, so you can't specify scopes for it. You should migrate it to be a scoped app via the "Permissions" tab of the app's page on the App Console.
- Andika Scofield4 years agoExplorer | Level 4Is this an obligation to migrate from "full dropbox" into "scoped app"?
- Greg-DB4 years ago
Dropbox Community Moderator
Yes, Dropbox is in process of migrating all apps to use scopes. This is a backwards compatible migration; scoped apps can use all of the same functionality as non-scoped apps. Scopes just offer more granularity in the control over which functionality you enable for the app. You can find more information on the migration in this blog post.
- Andika Scofield4 years agoExplorer | Level 4
Thank you Greg-DB
I have a question again.
After migration, there are two scopes; individual scopes and teams scopes.
My application already selects individual scope automatically.
But I don't know what is team scope, why is there a difference between team and individual?
- Greg-DB4 years ago
Dropbox Community Moderator
Individual scopes enable access to functionality relevant to any account. Team scopes enable access to functionality specific to Business teams only. Team scopes can only be authorized by team admins. You can see which scope is required for each endpoint in the API documentation, e.g., for the user endpoints, which require individual scopes, and for the Business endpoints, which require team scopes.
- Andika Scofield4 years agoExplorer | Level 4After migration, teams scope didn't selected automatically. It means that my application before doesn't support business teams?
- Greg-DB4 years ago
Dropbox Community Moderator
When migrating a non-scoped app to scopes, the page will automatically select the scopes that match the legacy permission type of the app. (From there you can enable or disable scopes as needed.) For example, for a full Dropbox or app folder app, that will automatically include user scopes but not team scopes, since those permissions are only used-linked, not team-linked. Team scopes enable access to functionality specific to teams, such as adding or removing members.
This does not indicate that your app did not allow Business accounts. Business accounts could and can still be linked to those legacy user-linked app types as well as scoped apps with user scopes to use the user-linked functionality, just like any other account type.
About Discuss Dropbox Developer & API
Make connections with other developers815 PostsLatest Activity: 10 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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!