<?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: Possible API v2 bug on revoking token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174208#M6809</link>
    <description>&lt;P&gt;Thanks, I can't seem to reproduce that behavior though. Perhaps you can add some logging and then share the log showing the issue? Since this requires checking the access token though, you may want to register an app folder app, or an extra account, so that you can share the log without leaking anything sensitive. (You can also share it privately here if you'd like:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/contact" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt; )&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 02:53:37 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-07-07T02:53:37Z</dc:date>
    <item>
      <title>Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174203#M6804</link>
      <description>&lt;P&gt;I am using the java sdk example and I noticed that when revoking the token via&amp;nbsp;&lt;A href="https://www.dropbox.com/account#security" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/account#security&lt;/A&gt; the example is stuck with an error.&lt;/P&gt;
&lt;P&gt;This is because it continues to use the old access token.&lt;/P&gt;
&lt;P&gt;Because of that I added code to clear the token&amp;nbsp;on error.&lt;BR /&gt;So that a new login is offered.&lt;/P&gt;
&lt;P&gt;The new login, provides a NEW access token and the app shows&lt;BR /&gt;again in account#security BUT the new token does not work.&lt;/P&gt;
&lt;P&gt;All requests end with the error:&lt;BR /&gt;{"error_summary": "invalid_access_token/.", "error": {".tag": "invalid_access_token"}}&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:32:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174203#M6804</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2019-05-29T09:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174204#M6805</link>
      <description>&lt;P&gt;Hi Holger, that error should only occur if the API call was made with an invalid or revoked access token. Are you sure you're using a new and valid one?&amp;nbsp;If so, can you share the modified code you're using?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 01:28:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174204#M6805</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-06T01:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174205#M6806</link>
      <description>&lt;P&gt;I made the following changes to the example:&lt;/P&gt;
&lt;P&gt;Every:&lt;/P&gt;
&lt;P&gt;"An error has occurred"&lt;/P&gt;
&lt;P&gt;changed to&lt;/P&gt;
&lt;P&gt;"An error has occurred: " + e.getMessage()&lt;/P&gt;
&lt;P&gt;In UserActivitiy.java I changed loadData to&lt;/P&gt;
&lt;P&gt;protected void loadData() {&lt;BR /&gt; new GetCurrentAccountTask(DropboxClientFactory.getClient(), new GetCurrentAccountTask.Callback() {&lt;BR /&gt; @Override&lt;BR /&gt; public void onComplete(FullAccount result) {&lt;BR /&gt; ((TextView) findViewById(R.id.email_text)).setText(result.getEmail());&lt;BR /&gt; ((TextView) findViewById(R.id.name_text)).setText(result.getName().getDisplayName());&lt;BR /&gt; ((TextView) findViewById(R.id.type_text)).setText(result.getAccountType().name());&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;@Override&lt;BR /&gt; public void onError(Exception e) {&lt;BR /&gt; Log.e(getClass().getName(), "Failed to get account details.", e);&lt;/P&gt;
&lt;P&gt;SharedPreferences prefs = getSharedPreferences("dropbox-sample", MODE_PRIVATE);&lt;BR /&gt; prefs.edit().putString("access-token", null).apply();&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt; }).execute();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:33:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174205#M6806</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2016-07-06T13:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174206#M6807</link>
      <description>&lt;P&gt;Your additional code throws away the old stored access token, but it doesn't show how/when you send the user back through the auth flow. Also, I can't reproduce the error once I authorize the app again and get a new access token. Are you sure you're not just using the old access token left in memory?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:42:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174206#M6807</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-07T01:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174207#M6808</link>
      <description>&lt;P&gt;The new access token is obtained by the original code.&lt;/P&gt;
&lt;P&gt;I just need to authorize again&amp;nbsp;I get a new access token (the value changes in the debugger)&lt;/P&gt;
&lt;P&gt;When trying to use it, it says the token is invalid.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 02:18:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174207#M6808</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2016-07-07T02:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174208#M6809</link>
      <description>&lt;P&gt;Thanks, I can't seem to reproduce that behavior though. Perhaps you can add some logging and then share the log showing the issue? Since this requires checking the access token though, you may want to register an app folder app, or an extra account, so that you can share the log without leaking anything sensitive. (You can also share it privately here if you'd like:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/contact" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 02:53:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174208#M6809</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-07T02:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174209#M6810</link>
      <description>&lt;P&gt;I will see what I can do, but one question upfront:&lt;/P&gt;
&lt;P&gt;Is it possible that&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DropboxClientFactory.init(accessToken);&lt;BR /&gt;&lt;BR /&gt;caches the accessToken somehow as long the app is in memory?&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 03:40:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174209#M6810</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2016-07-07T03:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174210#M6811</link>
      <description>&lt;P&gt;You can find the implementation of&amp;nbsp;DropboxClientFactory here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/f43597140fd8349c76f4e76e868d5846f0d3942b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/f43597140fd8349c76f4e76e868d5846f0d3942b/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxClientFactory.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It looks like it does only create the client when&amp;nbsp;sDbxClient == null, so you may just be re-using an old client with an old access token, e.g., if you didn't restart the app.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 03:55:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174210#M6811</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-07T03:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Possible API v2 bug on revoking token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174211#M6812</link>
      <description>&lt;P&gt;Doing some more tests it turns out the issue originates from there.&lt;/P&gt;
&lt;P&gt;It would be good that you update your sample so that it creates a new client in case the token has changed.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 19:01:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Possible-API-v2-bug-on-revoking-token/m-p/174211#M6812</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2016-07-09T19:01:07Z</dc:date>
    </item>
  </channel>
</rss>

