<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Missing scope from request in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521848#M1888</link>
    <description>&lt;P&gt;Thanks for your reply Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So do you mean remove the arrays completely to force use of defaults, like&lt;/P&gt;&lt;PRE&gt;DropboxActivity.&lt;SPAN&gt;startOAuth2Authentication&lt;/SPAN&gt;(UserActivity.&lt;SPAN&gt;this&lt;/SPAN&gt;, getString(R.string.&lt;SPAN&gt;app_key&lt;/SPAN&gt;), null);&lt;/PRE&gt;&lt;P&gt;or actually add the files.content.read like&lt;/P&gt;&lt;PRE&gt;DropboxActivity.&lt;SPAN&gt;startOAuth2Authentication&lt;/SPAN&gt;(UserActivity.&lt;SPAN&gt;this&lt;/SPAN&gt;, getString(R.string.&lt;SPAN&gt;app_key&lt;/SPAN&gt;), Arrays.&lt;SPAN&gt;asList&lt;/SPAN&gt;(&lt;SPAN&gt;"account_info.read", "files.content.read", "files.content.write"&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I would prefer if it called all be controlled from the app on dropbox/developer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 14:55:20 GMT</pubDate>
    <dc:creator>PPT320</dc:creator>
    <dc:date>2021-05-21T14:55:20Z</dc:date>
    <item>
      <title>Missing scope from request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521802#M1884</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for some help setting up an Android app with the api.&lt;/P&gt;&lt;P&gt;I am looking to list all files in a dropbox folder, select one to download and then read it into my app to process the data. The initial download is very similar to the Android SDK example but even that isn't working properly as it, like my app, creates an empty local file and the DownloadFileTask.java shows an error. I've traced this to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-05-21 10:01:02.336 10188-10188/com.example.********.&amp;nbsp; E/com.example.********.FilesActivity: Failed to download file.&lt;BR /&gt;d.a.a.s: {"error_summary": "missing_scope/.", "error": {".tag": "missing_scope", "required_scope": "files.content.read"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the developer app centre I definitely have file.content.read clicked and I have removed all data from my app and uninstalled. On reinstallation it asks me to login to dropbox which I assume then re-authenticates the app, which should have the scope set.&amp;nbsp; Neither the SDK example nor my app is actually creating the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the app-key set in R.string.app_key and also in the manifest in the AuthActivity section, although I don't have an activity in my app called AuthActivity, so not sure why it should be there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help as this is holding me up.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 09:26:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521802#M1884</guid>
      <dc:creator>PPT320</dc:creator>
      <dc:date>2021-05-21T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Missing scope from request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521847#M1887</link>
      <description>&lt;P&gt;The 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope. It sounds like you've already done so though, so I also recommend checking the code you're running to process the authorization flow itself. While the scopes you enable on the App Console are used as the default scopes for the app, the app can also optionally specify a smaller set of scopes at authorization time. For example in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/e52fc828c7c753e04c3fa9d47ab6de7e85d000c4/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L36" target="_self"&gt;this line of code in the sample app&lt;/A&gt;, it only requests "account_info.read" and "files.content.write". You would need to modify that if you want to request "files.content.read" as well.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 14:45:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521847#M1887</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-21T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Missing scope from request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521848#M1888</link>
      <description>&lt;P&gt;Thanks for your reply Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So do you mean remove the arrays completely to force use of defaults, like&lt;/P&gt;&lt;PRE&gt;DropboxActivity.&lt;SPAN&gt;startOAuth2Authentication&lt;/SPAN&gt;(UserActivity.&lt;SPAN&gt;this&lt;/SPAN&gt;, getString(R.string.&lt;SPAN&gt;app_key&lt;/SPAN&gt;), null);&lt;/PRE&gt;&lt;P&gt;or actually add the files.content.read like&lt;/P&gt;&lt;PRE&gt;DropboxActivity.&lt;SPAN&gt;startOAuth2Authentication&lt;/SPAN&gt;(UserActivity.&lt;SPAN&gt;this&lt;/SPAN&gt;, getString(R.string.&lt;SPAN&gt;app_key&lt;/SPAN&gt;), Arrays.&lt;SPAN&gt;asList&lt;/SPAN&gt;(&lt;SPAN&gt;"account_info.read", "files.content.read", "files.content.write"&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I would prefer if it called all be controlled from the app on dropbox/developer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 14:55:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521848#M1888</guid>
      <dc:creator>PPT320</dc:creator>
      <dc:date>2021-05-21T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Missing scope from request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521850#M1889</link>
      <description>&lt;P&gt;You can actually do either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want it to default to whatever is set for the app on the App Console at that point in time, you should pass in null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to be specifically defined by the code, even if additional scopes are added to the App Console, you should pass the specific desired scope list. (Note that you can't request scopes that aren't enabled for the app though.)&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:08:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521850#M1889</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-21T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Missing scope from request</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521857#M1891</link>
      <description>&lt;P&gt;Thanks Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed it to null and after initially failing because the example app then tried to open the file but its format won't allow it. I commented out the link to view the file and its now appears to be working. Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;DownloadFileTask(FilesActivity.&lt;SPAN&gt;this&lt;/SPAN&gt;, DropboxClientFactory.&lt;SPAN&gt;getClient&lt;/SPAN&gt;(), &lt;SPAN&gt;new &lt;/SPAN&gt;DownloadFileTask.Callback() {&lt;BR /&gt;    &lt;SPAN&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;public void &lt;/SPAN&gt;onDownloadComplete(File result) {&lt;BR /&gt;        &lt;SPAN&gt;dialog&lt;/SPAN&gt;.dismiss();&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;//if (result != null) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        //    viewFileInExternalApp(result);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        //}&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 15:34:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Missing-scope-from-request/m-p/521857#M1891</guid>
      <dc:creator>PPT320</dc:creator>
      <dc:date>2021-05-21T15:34:35Z</dc:date>
    </item>
  </channel>
</rss>

