<?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 authentication problem on java api in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-problem-on-java-api/m-p/766343#M33520</link>
    <description>&lt;P&gt;I'm trying to integrate the Dropbox API into the backend of my application, however, the authentication part is a difficult task to do, because, following the documentation, authentication must be done by authorizing through the browser, which is not an option, since the project will run on the server and this process will be transparent to the client&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 14:38:37 GMT</pubDate>
    <dc:creator>contato_augify</dc:creator>
    <dc:date>2024-04-25T14:38:37Z</dc:date>
    <item>
      <title>authentication problem on java api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-problem-on-java-api/m-p/766343#M33520</link>
      <description>&lt;P&gt;I'm trying to integrate the Dropbox API into the backend of my application, however, the authentication part is a difficult task to do, because, following the documentation, authentication must be done by authorizing through the browser, which is not an option, since the project will run on the server and this process will be transparent to the client&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 14:38:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-problem-on-java-api/m-p/766343#M33520</guid>
      <dc:creator>contato_augify</dc:creator>
      <dc:date>2024-04-25T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: authentication problem on java api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-problem-on-java-api/m-p/766357#M33521</link>
      <description>&lt;P&gt;It is not possible to completely automate the OAuth process where the user chooses to authorize the app and the app then receives the resulting access token and optional refresh token. The authorization step needs to be done manually by the user at least once. If your app needs to maintain long-term access without the user manually re-authorizing it repeatedly, the app should request "offline" access so that it gets a refresh token. The refresh token doesn't expire and can be stored and used repeatedly to get new short-lived access tokens whenever needed, without the user manually reauthorizing the app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;authorization documentation&lt;/A&gt;. There's a basic &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access#using-offline-access" target="_blank" rel="noopener noreferrer"&gt;outline of processing this flow in this post&lt;/A&gt; which may serve as a useful example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;The &lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_blank" rel="noopener noreferrer"&gt;official Dropbox Java SDK&lt;/A&gt; can actually handle the process for you automatically, e.g., as shown retrieved in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/main/examples/examples/src/main/java/com/dropbox/core/examples/authorize/ScopeAuthorize.java" target="_blank" rel="noopener noreferrer"&gt;this example&lt;/A&gt;, and then used as shown in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/main/examples/examples/src/main/java/com/dropbox/core/examples/account_info/AccountInfoExample.kt" target="_blank"&gt;this example&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 15:44:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-problem-on-java-api/m-p/766357#M33521</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-04-25T15:44:02Z</dc:date>
    </item>
  </channel>
</rss>

