<?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: Long time registered app not allowing Oauth authentication. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667999#M30232</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/231294"&gt;@Daniel G.70&lt;/a&gt; Also, to expand on Здравко's comment, while new apps are registered as scoped apps now, you do not need to register a new app. You can and should migrate any existing non-scoped apps to use scopes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And additionally, while I mentioned that you only need to do either option a or b in my post, you can technically do both. The 'scope' parameter on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;/oauth2/token&lt;/A&gt; is optional for both scoped and non-scoped apps; it is only needed if/when you want to get an access token with a specific subset of the scopes authorized to the given refresh token when calling with 'grant_type=refresh_token'.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 21:36:22 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-03-14T21:36:22Z</dc:date>
    <item>
      <title>Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667990#M30228</link>
      <description>&lt;P&gt;Anyone know why all of a sudden a dropbox registered app that's been working fine for years would suddenly show&lt;/P&gt;
&lt;PRE&gt;{"error": "invalid_scope", "error_description": "Non-scoped apps cannot specify token scopes"}&lt;/PRE&gt;
&lt;P&gt;When attempting to use an oauth refresh token like so.&lt;/P&gt;
&lt;PRE&gt;POST https://api.dropbox.com/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: api.dropbox.com
Content-Length: 363
Expect: 100-continue

refresh_token=&amp;lt;VALIDTOKEN&amp;gt;&amp;amp;grant_type=refresh_token&amp;amp;client_id=&amp;lt;VALIDCLIENTID&amp;gt;&amp;amp;client_secret=&amp;lt;VALIDSECRET&amp;gt;&amp;amp;scope=account_info.write+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&lt;/PRE&gt;
&lt;P&gt;I'm guessing I need to do something to the registration of the app. That some new requirement is needed, but I'm not sure what.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:40:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667990#M30228</guid>
      <dc:creator>Daniel G.70</dc:creator>
      <dc:date>2023-03-14T21:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667993#M30229</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/75738278/non-scoped-apps-cannot-specify-token-scopes-when-using-dropbox-api-oauth" target="_blank"&gt;https://stackoverflow.com/questions/75738278/non-scoped-apps-cannot-specify-token-scopes-when-using-dropbox-api-oauth&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your description, it sounds like you have a legacy non-scoped app from before we switched to registering new apps as scoped apps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We recently fixed a bug where the API would allow non-scoped apps to specify scopes using the 'scope' parameter when calling /oauth2/token with 'grant_type=refresh_token'. Scopes don't apply to non-scoped apps so this is supposed to be rejected with the error you're seeing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To correct this, you should either:&lt;/P&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;not provide the 'scope' parameter when calling /oauth2/token for the non-scoped app, or&lt;/LI&gt;
&lt;LI&gt;migrate your non-scoped app to use scopes, which you can do using the "Permissions" tab of the app's page on &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;the App Console&lt;/A&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Option b would be preferred. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" target="_blank"&gt;more information on the migration here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:18:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667993#M30229</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-14T21:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667994#M30230</link>
      <description>&lt;P&gt;Excellent. I will look into this. Thankyou!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:20:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667994#M30230</guid>
      <dc:creator>Daniel G.70</dc:creator>
      <dc:date>2023-03-14T21:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667995#M30231</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/231294"&gt;@Daniel G.70&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As can be seen from the error message, you're trying scopes on no scoped application! 🙋 Why? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Try to remove the last part (representing the scopes) from the request payload. Or register a new scoped application and start anew.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:20:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667995#M30231</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-14T21:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667999#M30232</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/231294"&gt;@Daniel G.70&lt;/a&gt; Also, to expand on Здравко's comment, while new apps are registered as scoped apps now, you do not need to register a new app. You can and should migrate any existing non-scoped apps to use scopes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And additionally, while I mentioned that you only need to do either option a or b in my post, you can technically do both. The 'scope' parameter on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;/oauth2/token&lt;/A&gt; is optional for both scoped and non-scoped apps; it is only needed if/when you want to get an access token with a specific subset of the scopes authorized to the given refresh token when calling with 'grant_type=refresh_token'.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:36:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/667999#M30232</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-14T21:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/668003#M30233</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...; it is only needed if/when you want to get an access token with a specific subset of the scopes authorized to the given refresh token when calling with 'grant_type=refresh_token'.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;... and also if you want to restrict scopes available to the refresh token as a subset of all scopes available to the application when initiate OAuth flow. If you don't need restricting any scopes and you have set all properly to the application and no need different instances with different scopes, better skip 'scope' usage at all.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:44:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/668003#M30233</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-14T21:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Long time registered app not allowing Oauth authentication.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/668214#M30249</link>
      <description>&lt;P&gt;This was indeed exactly the issue. We never did migrate to a scoped app. And we do specify scopes on the wire.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was the source of the issue and the fixes you propose did work. Thankyou!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 15:10:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-time-registered-app-not-allowing-Oauth-authentication/m-p/668214#M30249</guid>
      <dc:creator>Daniel G.70</dc:creator>
      <dc:date>2023-03-15T15:10:53Z</dc:date>
    </item>
  </channel>
</rss>

