<?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: Get oAuth token JAVA SDk in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618754#M2850</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1569018"&gt;@corvettemina&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Fully automatic authentication has never been and likely&amp;nbsp; will never be. Particular user that gives right to your application to do something on his account, needs to confirm it somehow (such thing can't be fully automatic - or I don't know for such, at least). About "long live access token"; if you have some exist, you can still use it as... always. If you mean to get a new one, it's impossible already. Such tokens, even usable still, are&amp;nbsp; considered obsolete and likely will be dropped at some future point. You can see "how to use a refresh token in the java sdk" in some of the examples there (&lt;A title="authorize example - Main" href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/Main.java" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, for instance, to receive one and &lt;A title="upload_file examples - Main" href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for usage in action).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Aug 2022 12:50:19 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-08-28T12:50:19Z</dc:date>
    <item>
      <title>Get oAuth token JAVA SDk</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618737#M2849</link>
      <description>&lt;P&gt;Can anyone please show me how to get a long live access token or how to use a refresh token in the java sdk. I need it to automatically happen as i am making automations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 10:26:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618737#M2849</guid>
      <dc:creator>corvettemina</dc:creator>
      <dc:date>2022-09-06T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get oAuth token JAVA SDk</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618754#M2850</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1569018"&gt;@corvettemina&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Fully automatic authentication has never been and likely&amp;nbsp; will never be. Particular user that gives right to your application to do something on his account, needs to confirm it somehow (such thing can't be fully automatic - or I don't know for such, at least). About "long live access token"; if you have some exist, you can still use it as... always. If you mean to get a new one, it's impossible already. Such tokens, even usable still, are&amp;nbsp; considered obsolete and likely will be dropped at some future point. You can see "how to use a refresh token in the java sdk" in some of the examples there (&lt;A title="authorize example - Main" href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/Main.java" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, for instance, to receive one and &lt;A title="upload_file examples - Main" href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for usage in action).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2022 12:50:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618754#M2850</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-28T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get oAuth token JAVA SDk</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618760#M2851</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1569018"&gt;@corvettemina&lt;/a&gt; As Здравко said, the user needs to authorize the app, at least once. For long-term access, you should now be using refresh tokens. The Java SDK can actually handle the refresh process for you automatically, as long as you supply the necessary credentials, e.g., as shown retrieved in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/Main.java" rel="noreferrer" target="_blank"&gt;this example&lt;/A&gt; (meant for server-side Java apps), or &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/PkceAuthorize.java" rel="noreferrer" target="_blank"&gt;this example&lt;/A&gt; (meant for client-side Java apps), and then used as shown in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java" rel="noreferrer" target="_blank"&gt;this example&lt;/A&gt;. (For Android, see &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_blank"&gt;this example&lt;/A&gt; instead.)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2022 15:07:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618760#M2851</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-08-28T15:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get oAuth token JAVA SDk</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618801#M2852</link>
      <description>&lt;P&gt;Awesome I've used these before maybe i am missing something after I authorized once who do i continue using it with out having to be prompted?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 01:19:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618801#M2852</guid>
      <dc:creator>corvettemina</dc:creator>
      <dc:date>2022-08-29T01:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get oAuth token JAVA SDk</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618887#M2853</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1569018"&gt;@corvettemina&lt;/a&gt;, if you have used the same before, do it in the same way and only difference should be different type of token (access token before, refresh token now). That's it. If your code prompts again (without actual need), seems you have changed something in your application (something that didn't need to be changed) or you have some logical error there. Debug your code.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Your code initiates the authorization, Java SDK just performs it.&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:18:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Get-oAuth-token-JAVA-SDk/m-p/618887#M2853</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-08-29T12:18:16Z</dc:date>
    </item>
  </channel>
</rss>

