<?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 help understanding token_access_type offline in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/help-understanding-token-access-type-offline/m-p/535064#M2031</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to understand how I&amp;nbsp;should work with an offline token?&lt;/P&gt;&lt;P&gt;Currently, I am using a token with 'no-expiration', but I have read the following&amp;nbsp;in the documentation (&lt;A href="https://developers.dropbox.com/oauth-guide" target="_self"&gt;https://developers.dropbox.com/oauth-guide&lt;/A&gt;) :&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;In the past, the Dropbox API used only long-lived access tokens. These are now deprecated, but will remain available as an option in the Developer console for compatibility until mid 2021.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;First of all, is there an accurate deadline for the deprecation of this type of tokens?&lt;/P&gt;&lt;P&gt;Also, what should I do to use a token with an offline app?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have also found this issue&amp;nbsp;&lt;A href="https://github.com/rclone/rclone/issues/5242" target="_self"&gt;https://github.com/rclone/rclone/issues/5242&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Here is the solution / workaround i have found.&lt;/P&gt;&lt;P&gt;If this does not change, it's just about a RClone config and behavior change in the future.&lt;/P&gt;&lt;P&gt;As stated on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-remove" target="_self" rel="nofollow"&gt;this page of Dropbox API&lt;/A&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;refresh_token&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be forced to be generated with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;access_token&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if we register the OAUTH2 access with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;token_access_type=offline&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter in the URI.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;In addition, in the example code&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py" target="_self"&gt;dropbox_python_sdk_eample&lt;/A&gt;&amp;nbsp;there is an implementation of authorisation with 'token_access_type=offline'. By using this way I get an access token from a generated url. Is&amp;nbsp;this type of token the new 'no-expiration' token? May I use this token for my app permanently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jul 2021 14:33:51 GMT</pubDate>
    <dc:creator>Linus_s_g</dc:creator>
    <dc:date>2021-07-25T14:33:51Z</dc:date>
    <item>
      <title>help understanding token_access_type offline</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/help-understanding-token-access-type-offline/m-p/535064#M2031</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to understand how I&amp;nbsp;should work with an offline token?&lt;/P&gt;&lt;P&gt;Currently, I am using a token with 'no-expiration', but I have read the following&amp;nbsp;in the documentation (&lt;A href="https://developers.dropbox.com/oauth-guide" target="_self"&gt;https://developers.dropbox.com/oauth-guide&lt;/A&gt;) :&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;In the past, the Dropbox API used only long-lived access tokens. These are now deprecated, but will remain available as an option in the Developer console for compatibility until mid 2021.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;First of all, is there an accurate deadline for the deprecation of this type of tokens?&lt;/P&gt;&lt;P&gt;Also, what should I do to use a token with an offline app?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have also found this issue&amp;nbsp;&lt;A href="https://github.com/rclone/rclone/issues/5242" target="_self"&gt;https://github.com/rclone/rclone/issues/5242&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Here is the solution / workaround i have found.&lt;/P&gt;&lt;P&gt;If this does not change, it's just about a RClone config and behavior change in the future.&lt;/P&gt;&lt;P&gt;As stated on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-remove" target="_self" rel="nofollow"&gt;this page of Dropbox API&lt;/A&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;refresh_token&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be forced to be generated with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;access_token&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if we register the OAUTH2 access with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;token_access_type=offline&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter in the URI.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;In addition, in the example code&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py" target="_self"&gt;dropbox_python_sdk_eample&lt;/A&gt;&amp;nbsp;there is an implementation of authorisation with 'token_access_type=offline'. By using this way I get an access token from a generated url. Is&amp;nbsp;this type of token the new 'no-expiration' token? May I use this token for my app permanently?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 14:33:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/help-understanding-token-access-type-offline/m-p/535064#M2031</guid>
      <dc:creator>Linus_s_g</dc:creator>
      <dc:date>2021-07-25T14:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: help understanding token_access_type offline</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/help-understanding-token-access-type-offline/m-p/535290#M2034</link>
      <description>&lt;P&gt;You can find more information on this migration in &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" target="_self"&gt;this blog post&lt;/A&gt;. That change, where Dropbox will no longer return new long-lived access tokens, is planned for September 30th, 2021.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Going forward, any apps that need long-term access should instead use short-lived access tokens with refresh tokens. An app can use a refresh token to get new short-lived access tokens for the user whenever needed, without further manual user interaction. An app gets a refresh token by requesting "offline" access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py" target="_self"&gt;That linked example&lt;/A&gt; shows an updated example implementation of using the OAuth flow via the Dropbox Python SDK to request offline access and get a refresh token, which is available in the "oauth_result.refresh_token" variable there. That enables the app to get long-term access without having the user manually re-authorize it repeatedly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refresh tokens can be stored and re-used for any particular app-user pair, just like long-lived access tokens could. Note though that, also like long-lived access tokens, refresh tokens can be revoked by the user or app at any time.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 17:52:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/help-understanding-token-access-type-offline/m-p/535290#M2034</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-07-26T17:52:22Z</dc:date>
    </item>
  </channel>
</rss>

