<?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 Refreshing short live tokens without Consumer Key and Consumer Secrect in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/474493#M24090</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are updating our code in order to support refresh token. We need backgroud renewal of the token.&lt;/P&gt;&lt;P&gt;We are using the JAVA version of the API.&lt;/P&gt;&lt;P&gt;It seems that in order to update the token (to refresh the short lived token)&amp;nbsp;it is mandatory to store in the code the following secret information (Consumer Key and Consumer Secrect):&lt;/P&gt;&lt;P&gt;ApiKey and ApiSecret&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DbxRequestConfig requests&amp;nbsp;ApiKey and ApiSecret in order to refresh the token.&lt;/P&gt;&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/oauth/DbxCredential.html" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/oauth/DbxCredential.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another solution that avoids to write the&amp;nbsp;Consumer Key and Consumer Secrect within the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 17:59:50 GMT</pubDate>
    <dc:creator>epris</dc:creator>
    <dc:date>2020-11-30T17:59:50Z</dc:date>
    <item>
      <title>Refreshing short live tokens without Consumer Key and Consumer Secrect</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/474493#M24090</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are updating our code in order to support refresh token. We need backgroud renewal of the token.&lt;/P&gt;&lt;P&gt;We are using the JAVA version of the API.&lt;/P&gt;&lt;P&gt;It seems that in order to update the token (to refresh the short lived token)&amp;nbsp;it is mandatory to store in the code the following secret information (Consumer Key and Consumer Secrect):&lt;/P&gt;&lt;P&gt;ApiKey and ApiSecret&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DbxRequestConfig requests&amp;nbsp;ApiKey and ApiSecret in order to refresh the token.&lt;/P&gt;&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/oauth/DbxCredential.html" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/oauth/DbxCredential.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another solution that avoids to write the&amp;nbsp;Consumer Key and Consumer Secrect within the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:59:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/474493#M24090</guid>
      <dc:creator>epris</dc:creator>
      <dc:date>2020-11-30T17:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing short live tokens without Consumer Key and Consumer Secrect</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/474611#M24098</link>
      <description>&lt;P&gt;Yes, you can use the "PKCE" flow to process "offline" access without having the app secret. You can find an example of running this with the Java SDK here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/PkceAuthorize.java" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/PkceAuthorize.java&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 18:19:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/474611#M24098</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-30T18:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing short live tokens without Consumer Key and Consumer Secrect</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/475986#M24132</link>
      <description>&lt;P&gt;We solved following your suggestion, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 09:19:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refreshing-short-live-tokens-without-Consumer-Key-and-Consumer/m-p/475986#M24132</guid>
      <dc:creator>epris</dc:creator>
      <dc:date>2020-12-04T09:19:18Z</dc:date>
    </item>
  </channel>
</rss>

