<?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: How to pass the &amp;quot;request code&amp;quot; when doing authentication  in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115859#M3413</link>
    <description>&lt;P&gt;How to perform this check using API v2?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 16:58:12 GMT</pubDate>
    <dc:creator>Allek</dc:creator>
    <dc:date>2016-09-29T16:58:12Z</dc:date>
    <item>
      <title>How to pass the "request code" when doing authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115855#M3409</link>
      <description>&lt;P&gt;This is for Android: I am moving from Sync API to Core API. Once you do authentication, &lt;CODE&gt;onResume&lt;/CODE&gt; is called. However, there is no request code to be passed so I can check it in the &lt;CODE&gt;onResume&lt;/CODE&gt;. How would I know that the &lt;CODE&gt;onResume&lt;/CODE&gt; is called due to "authentication flow" or due to simply the user is reopening the activity? I don't want to be continuing with the authentication and move files to dropbox if the user was simply opening my app. You see my point?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115855#M3409</guid>
      <dc:creator>Ahmad R.7</dc:creator>
      <dc:date>2019-05-29T09:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the "request code" when doing authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115856#M3410</link>
      <description>&lt;P&gt;The auth flow works a bit differently between the two SDKs. You can find instructions for setting up the auth flow in the Core SDK here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/start/android#authenticating" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/start/android#authenticating&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You use the &lt;CODE&gt;authenticationSuccessful&lt;/CODE&gt; method to check if the user is coming back from the app auth flow. If not, it will return false so your app doesn't run the rest of that code again.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:32:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115856#M3410</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-06-30T11:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the "request code" when doing authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115857#M3411</link>
      <description>&lt;P&gt;Thank you Greg. Let me ask you about this scenario then. Let's say that in my app the user wants to backup a file. So the app initiates authentication, on resume is called and the file gets backed up. Good, now let's say right away the user press home button and come back to the app, the on resume will be called. In that case, won't the authenticationSuccessfull returns true? And if so then the file will get backup again (and the file could've changed meanwhile). &lt;BR /&gt;
IIn summary, is it guaranteed that the authenticationSuccessfull will return true "only"  if the on resume is called as a result Auth flow and will return false even if authentication was just done previously on the same activity? &lt;/P&gt;

&lt;P&gt;Thank you again &lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:36:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115857#M3411</guid>
      <dc:creator>Ahmad R.7</dc:creator>
      <dc:date>2015-06-30T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the "request code" when doing authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115858#M3412</link>
      <description>&lt;P&gt;Your summary is correct, &lt;CODE&gt;authenticationSuccessful&lt;/CODE&gt; only returns true right after the auth flow. Simply returning to the app normally won't have it return true.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 22:27:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115858#M3412</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-06-30T22:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the "request code" when doing authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115859#M3413</link>
      <description>&lt;P&gt;How to perform this check using API v2?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:58:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115859#M3413</guid>
      <dc:creator>Allek</dc:creator>
      <dc:date>2016-09-29T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass the "request code" when doing authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115860#M3414</link>
      <description>&lt;P&gt;Allek, are you using the&amp;nbsp;Dropbox Java SDK for API v2 on Android? If so, there's a sample that shows the authorization flow here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 01:11:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-pass-the-quot-request-code-quot-when-doing-authentication/m-p/115860#M3414</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-09-30T01:11:13Z</dc:date>
    </item>
  </channel>
</rss>

