<?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 remove hashtag from return query in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/remove-hashtag-from-return-query/m-p/334631#M19522</link>
    <description>&lt;P&gt;When using the Javascript API, the app is set up to return a value to my response page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The querystring&amp;nbsp;is pre-pended with a hashtag :&lt;/P&gt;&lt;P&gt;#access_token=blahblahblah&lt;/P&gt;&lt;P&gt;THe problem is that the server side cannot see the URL after the hashtag, is there a way to remove this from the return string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:07:21 GMT</pubDate>
    <dc:creator>JimmyleedDev</dc:creator>
    <dc:date>2019-05-29T09:07:21Z</dc:date>
    <item>
      <title>remove hashtag from return query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/remove-hashtag-from-return-query/m-p/334631#M19522</link>
      <description>&lt;P&gt;When using the Javascript API, the app is set up to return a value to my response page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The querystring&amp;nbsp;is pre-pended with a hashtag :&lt;/P&gt;&lt;P&gt;#access_token=blahblahblah&lt;/P&gt;&lt;P&gt;THe problem is that the server side cannot see the URL after the hashtag, is there a way to remove this from the return string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/remove-hashtag-from-return-query/m-p/334631#M19522</guid>
      <dc:creator>JimmyleedDev</dc:creator>
      <dc:date>2019-05-29T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: remove hashtag from return query</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/remove-hashtag-from-return-query/m-p/334663#M19527</link>
      <description>&lt;P&gt;The&amp;nbsp;Dropbox OAuth app authorization process supports two different "flows" or "grants": the "code" flow and the "token" flow. You can find more information on both of these in the&amp;nbsp;Dropbox authorization documentation here:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#authorization&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From the snippet you included, I see that you're using the "token" flow, where the access token is returned directly on the redirect URI's fragment or "hash". This behavior can't be changed for the token flow. This is primarily meant for client-side applications where the application can retrieve and read the hash value, e.g., from client-side browser JavaScript.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the official&amp;nbsp;Dropbox API v2 JavaScript SDK, you can find an example of processing the token flow here:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/auth/index.html" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/auth/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Alternatively, if you're building a server-side app, you should instead use the "code" flow, where an "authorization code" is returned as a query parameter (not on the URL fragment), which the server can read and the app should then exchange for an access token.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the official&amp;nbsp;Dropbox API v2 JavaScript SDK server-side, you can find an example of using the code flow here:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/code_flow_example.js" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/code_flow_example.js&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 15:03:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/remove-hashtag-from-return-query/m-p/334663#M19527</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-19T15:03:41Z</dc:date>
    </item>
  </channel>
</rss>

