<?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 find the present-log-in-account in the redirect_uri in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231179#M12605</link>
    <description>&lt;P&gt;Sorry for my bad writing. &amp;lt;(_ _)&amp;gt;&lt;BR /&gt;I'm not a native English speaker. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And thanks to your kind advices, I have been able to figure out what I should do.&lt;/P&gt;
&lt;P&gt;I would have liked the app-users to know what account he/she logged in, and to have chance to change accounts if he/she wants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve that, the best way seems to be ....&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Step 1 : Get a CODE using the oauth2/authorize end point&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Step 2 : Convert the CODE into a bearer token using the /oauth2/token end point&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But at first, I was trying to get a bearer token using the oauth2/authorize end point with the parameter "response_type=token".&lt;BR /&gt;That seems to be my mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your help. &amp;lt;(_ _)&amp;gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 15:39:06 GMT</pubDate>
    <dc:creator>seizo</dc:creator>
    <dc:date>2017-07-07T15:39:06Z</dc:date>
    <item>
      <title>How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/230937#M12571</link>
      <description>&lt;P&gt;I have a question about /oauth2/authorize end point.&lt;/P&gt;
&lt;P&gt;Now I'm developing an Android app.&lt;BR /&gt;The app sends a request to /oauth2/authorize end point. (response_type=token)&lt;BR /&gt;I could confirm that the endpoint redirects the data to a certain web-page that I had set in my app-settings (redirect_uri).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;At this moment, if I had already logged in to Dropbox service with the account "AAA@gmail.com"&lt;BR /&gt;I can get token for the account "AAA@gmail.com" in the redirect_uri.&lt;/P&gt;
&lt;P&gt;Here is my question below .....&lt;/P&gt;
&lt;P&gt;If I have several Dropbox accounts,&lt;BR /&gt;for example ...&lt;BR /&gt; "AAA@gmail.com"&lt;BR /&gt; "BBB@gmail.com"&lt;BR /&gt; "CCC@gmail.com"&lt;BR /&gt;how can I know the the token in the redirect_uri is for?&lt;/P&gt;
&lt;P&gt;Are there any ways to send the present-log-in-account-id to the redirect_uri.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;How to find the present-log-in-account in the redirect_uri&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/230937#M12571</guid>
      <dc:creator>seizo</dc:creator>
      <dc:date>2019-05-29T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231014#M12578</link>
      <description>&lt;P&gt;When&amp;nbsp;Dropbox sends the user back to the redirect URI specified by your app, it will include the 'account_id' for the account that authorized the app, along with the other parameters, on the URL fragment. You can find the documentation for all of the pieces of information returned here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that since this occurs client-side, you can't strictly trust these values for authentication purposes, so you should then call&amp;nbsp;/2/users/get_current_account using that access token to verify the account ID, if&amp;nbsp;that's what you need it for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:38:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231014#M12578</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-06T14:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231098#M12591</link>
      <description>&lt;P&gt;Greg, thank you for the advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you said there is account_id in the URL fragment.&lt;BR /&gt;It is like this below.&lt;BR /&gt; "dbid%32221111%%%%%%%sssspppp"&lt;/P&gt;
&lt;P&gt;But the user who are facing the redirect-page needs to know the current account,&lt;BR /&gt;because he/she has to decide to change the account or not at this moment.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So I think that /oauth2/authorize end point has to return log-in id&lt;BR /&gt;like "aaaa@dropbox.com" rather than account_id like "dbid%32221111%%%%%%%sssspppp",&lt;BR /&gt;to specify the user the account that /oauth2/authorize have permitted to access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 02:29:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231098#M12591</guid>
      <dc:creator>seizo</dc:creator>
      <dc:date>2017-07-07T02:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231147#M12598</link>
      <description>The /oauth2/authorize web page itself shows the user which account they're currently logged in to in the drop down in the upper right corner of the page. They can also switch which account they're logged in to by signing out and in there, before authorizing the app.</description>
      <pubDate>Fri, 07 Jul 2017 13:17:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231147#M12598</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-07T13:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231157#M12601</link>
      <description>&lt;P&gt;Thank you Greg for the kind explanation. &amp;lt;(_ _)&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use oauth2/authorize endpoint ...&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;with&lt;/FONT&gt;&lt;/STRONG&gt; the parameter "response_type=&lt;FONT color="#008000"&gt;code&lt;/FONT&gt;" and &lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;without&lt;/STRONG&gt;&lt;/FONT&gt; the parameter "redirect_uri=&lt;A href="https://myWebpage.com" target="_blank"&gt;https://myWebpage.com&lt;/A&gt;"&lt;BR /&gt;I can get a code in the &lt;A href="https://www.dropbox.com/1/oauth2/authorize_submit" target="_blank"&gt;https://www.dropbox.com/1/oauth2/authorize_submit&lt;/A&gt; page.&lt;BR /&gt;As you wrote, there is a drop down in the upper right corner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in case I use the endpoint ...&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;with&lt;/FONT&gt;&lt;/STRONG&gt; the parameter "response_type=&lt;FONT color="#008000"&gt;token&lt;/FONT&gt;" and &lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;with&lt;/STRONG&gt; &lt;/FONT&gt;the parameter "redirect_uri=&lt;A href="https://myWebpage.com" target="_blank"&gt;https://myWebpage.com&lt;/A&gt;"&lt;BR /&gt;it seems to be difficult to install the similar drop down in the private redirect_uri, doesn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:44:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231157#M12601</guid>
      <dc:creator>seizo</dc:creator>
      <dc:date>2017-07-07T13:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231159#M12602</link>
      <description>I'm not sure I understand what you mean when you say "it seems to be difficult to install the similar drop down in the private redirect_uri, doesn't it?"&lt;BR /&gt;&lt;BR /&gt;Can you elaborate? If that's your own private page, you can design it however you'd like.</description>
      <pubDate>Fri, 07 Jul 2017 13:50:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231159#M12602</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-07T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231179#M12605</link>
      <description>&lt;P&gt;Sorry for my bad writing. &amp;lt;(_ _)&amp;gt;&lt;BR /&gt;I'm not a native English speaker. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And thanks to your kind advices, I have been able to figure out what I should do.&lt;/P&gt;
&lt;P&gt;I would have liked the app-users to know what account he/she logged in, and to have chance to change accounts if he/she wants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve that, the best way seems to be ....&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Step 1 : Get a CODE using the oauth2/authorize end point&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Step 2 : Convert the CODE into a bearer token using the /oauth2/token end point&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But at first, I was trying to get a bearer token using the oauth2/authorize end point with the parameter "response_type=token".&lt;BR /&gt;That seems to be my mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate your help. &amp;lt;(_ _)&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:39:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231179#M12605</guid>
      <dc:creator>seizo</dc:creator>
      <dc:date>2017-07-07T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231181#M12606</link>
      <description>It's no problem! &lt;BR /&gt;&lt;BR /&gt;The user can change accounts if they want before clicking "Allow". You may want to set force_reapprove=true though. Otherwise, Dropbox may automatically redirect them before that can do so. You can find more information on that parameter here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize&lt;/A&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:41:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/231181#M12606</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-07T15:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the present-log-in-account in the redirect_uri</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/545526#M26030</link>
      <description>ใช้งานง่ายและรวดเร็ว</description>
      <pubDate>Fri, 17 Sep 2021 16:42:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-find-the-present-log-in-account-in-the-redirect-uri/m-p/545526#M26030</guid>
      <dc:creator>Kiang M59</dc:creator>
      <dc:date>2021-09-17T16:42:12Z</dc:date>
    </item>
  </channel>
</rss>

