<?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 regarding the generation of a lifetime access token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/regarding-the-generation-of-a-lifetime-access-token/m-p/749684#M32909</link>
    <description>&lt;P&gt;key in C#.NET platform. Despite my efforts, I have encountered persistent errors indicating that the generated key is not supported.&lt;/P&gt;&lt;P&gt;I have extensively utilized various code snippets for this purpose, but the issue persists. Could you kindly provide guidance on the correct methodology or code snippet to generate a lifetime access token key using C#?&lt;/P&gt;&lt;P&gt;Your expertise and assistance in resolving this matter would be immensely appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 12:08:18 GMT</pubDate>
    <dc:creator>lumenstech</dc:creator>
    <dc:date>2024-02-07T12:08:18Z</dc:date>
    <item>
      <title>regarding the generation of a lifetime access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/regarding-the-generation-of-a-lifetime-access-token/m-p/749684#M32909</link>
      <description>&lt;P&gt;key in C#.NET platform. Despite my efforts, I have encountered persistent errors indicating that the generated key is not supported.&lt;/P&gt;&lt;P&gt;I have extensively utilized various code snippets for this purpose, but the issue persists. Could you kindly provide guidance on the correct methodology or code snippet to generate a lifetime access token key using C#?&lt;/P&gt;&lt;P&gt;Your expertise and assistance in resolving this matter would be immensely appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 12:08:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/regarding-the-generation-of-a-lifetime-access-token/m-p/749684#M32909</guid>
      <dc:creator>lumenstech</dc:creator>
      <dc:date>2024-02-07T12:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the generation of a lifetime access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/regarding-the-generation-of-a-lifetime-access-token/m-p/749772#M32912</link>
      <description>&lt;P&gt;Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#updating-access-token-type" rel="noopener noreferrer" target="_blank"&gt;more information on this migration here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. Refresh tokens do not expire automatically and can be used repeatedly. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" rel="noopener noreferrer" target="_blank"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" rel="noopener noreferrer" target="_blank"&gt;authorization documentation&lt;/A&gt;. There's a basic outline of processing this flow in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" rel="noopener noreferrer" target="_blank"&gt;this blog post&lt;/A&gt; which may serve as a useful example.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;When you use &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank"&gt;the official Dropbox API v2 .NET SDK&lt;/A&gt;, you do not need to implement all of the code for this process yourself. The SDK will do most of the work for you. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples" rel="noopener noreferrer" target="_blank"&gt;examples of using this here&lt;/A&gt;. For instance, you can find an example of getting and using a refresh token in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OauthBasic/Program.cs" rel="noopener noreferrer" target="_blank"&gt;the OauthBasic example&lt;/A&gt; (non-PKCE, meant for server-side apps) as well as in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OAuthPKCE/Program.cs" rel="noopener noreferrer" target="_blank"&gt;the OAuthPKCE example&lt;/A&gt; (PKCE, meant for client-side apps).&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:21:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/regarding-the-generation-of-a-lifetime-access-token/m-p/749772#M32912</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-07T16:21:04Z</dc:date>
    </item>
  </channel>
</rss>

