<?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 Migrating to refresh token on Android - Sample not working in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519758#M25368</link>
    <description>&lt;P&gt;Hi. I am in the process of migrating from long lived tokens, to refresh tokens for offline access. I haven't made any changes in the App Console yet, I'm just trying to get a proof of concept, by linking using scoped PKCE offline access.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed the Android samples had been updated for PKCE and offline access (this is the default behaviour in the sample). So I updated the sample to add my App Key to the manifest and the strings.xml as instructed. However the linking process is failing both when using the Dropbox app and Chrome. This is on Android 10, but same observed on Android 7. I have added the URL that was generated for the browser access below, and screenshots of the errors received. Note that the Dropbox app error was received after pressing 'Allow' (obviously I did have an internet connection at the time), the website came up with the 400 error before showing anything:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://www.dropbox.com/1/connect
    ?locale=en_GB
    &amp;amp;k={APP_KEY_WAS_ENTERED_CORRECTLY}
    &amp;amp;n=0
    &amp;amp;api=1
    &amp;amp;state=oauth2code%3AAOnfqepB6EDsFiSePtv7F_KdlLNfuj-9d5OHrc4oWPw%3AS256%3Aoffline%3Aaccount_info.read+files.content.write
    &amp;amp;extra_query_params=code_challenge%3DAOnfqepB6EDsFiSePtv7F_KdlLNfuj-9d5OHrc4oWPw%26code_challenge_method%3DS256%26token_access_type%3Doffline%26response_type%3Dcode%26scope%3Daccount_info.read+files.content.write
 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20210512-103946_Dropbox.jpg" style="width: 389px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/23478i73D1152395C38A3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20210512-103946_Dropbox.jpg" alt="Screenshot_20210512-103946_Dropbox.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20210512-103619_Samsung Internet.jpg" style="width: 389px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/23477i5CF98705B33C5D91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20210512-103619_Samsung Internet.jpg" alt="Screenshot_20210512-103619_Samsung Internet.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 12:55:19 GMT</pubDate>
    <dc:creator>Mark R.5</dc:creator>
    <dc:date>2021-05-12T12:55:19Z</dc:date>
    <item>
      <title>Migrating to refresh token on Android - Sample not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519758#M25368</link>
      <description>&lt;P&gt;Hi. I am in the process of migrating from long lived tokens, to refresh tokens for offline access. I haven't made any changes in the App Console yet, I'm just trying to get a proof of concept, by linking using scoped PKCE offline access.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed the Android samples had been updated for PKCE and offline access (this is the default behaviour in the sample). So I updated the sample to add my App Key to the manifest and the strings.xml as instructed. However the linking process is failing both when using the Dropbox app and Chrome. This is on Android 10, but same observed on Android 7. I have added the URL that was generated for the browser access below, and screenshots of the errors received. Note that the Dropbox app error was received after pressing 'Allow' (obviously I did have an internet connection at the time), the website came up with the 400 error before showing anything:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://www.dropbox.com/1/connect
    ?locale=en_GB
    &amp;amp;k={APP_KEY_WAS_ENTERED_CORRECTLY}
    &amp;amp;n=0
    &amp;amp;api=1
    &amp;amp;state=oauth2code%3AAOnfqepB6EDsFiSePtv7F_KdlLNfuj-9d5OHrc4oWPw%3AS256%3Aoffline%3Aaccount_info.read+files.content.write
    &amp;amp;extra_query_params=code_challenge%3DAOnfqepB6EDsFiSePtv7F_KdlLNfuj-9d5OHrc4oWPw%26code_challenge_method%3DS256%26token_access_type%3Doffline%26response_type%3Dcode%26scope%3Daccount_info.read+files.content.write
 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20210512-103946_Dropbox.jpg" style="width: 389px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/23478i73D1152395C38A3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20210512-103946_Dropbox.jpg" alt="Screenshot_20210512-103946_Dropbox.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20210512-103619_Samsung Internet.jpg" style="width: 389px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/23477i5CF98705B33C5D91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20210512-103619_Samsung Internet.jpg" alt="Screenshot_20210512-103619_Samsung Internet.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 12:55:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519758#M25368</guid>
      <dc:creator>Mark R.5</dc:creator>
      <dc:date>2021-05-12T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating to refresh token on Android - Sample not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519906#M25371</link>
      <description>&lt;P&gt;Are you using an app key for an app that hasn't been migrated to scopes yet? This can occur if so. (Apologies for the unhelpful error messages!) In order to set scopes during the app authorization flow like this, you'll need to use an app key for an app that is set to use scopes.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:06:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519906#M25371</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-12T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating to refresh token on Android - Sample not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519912#M25372</link>
      <description>Ok, that’s fixed it. Thanks!</description>
      <pubDate>Wed, 12 May 2021 17:23:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-to-refresh-token-on-Android-Sample-not-working/m-p/519912#M25372</guid>
      <dc:creator>Mark R.5</dc:creator>
      <dc:date>2021-05-12T17:23:29Z</dc:date>
    </item>
  </channel>
</rss>

