<?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: Authorization code flow no longer works? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199736#M9324</link>
    <description>Thanks for confirming that. I'm glad to hear this is sorted out.&lt;BR /&gt;&lt;BR /&gt;The OAuth endpoints are a little different than the API endpoints, so I'll ask the team to clarify the documentation at least.</description>
    <pubDate>Wed, 28 Dec 2016 21:18:04 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-12-28T21:18:04Z</dc:date>
    <item>
      <title>Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199622#M9294</link>
      <description>&lt;P&gt;I am posting all required parameters to&amp;nbsp;&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt; but the servers keeps returning a very vague error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REQUEST:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST https://api.dropbox.com/oauth2/token HTTP/1.1
Accept: */*
Content-Type: application/json; charset=utf-8
Content-Length: 221
User-Agent: Adobe Photoshop Lightroom
Host: api.dropbox.com
Cache-Control: no-cache
{"client_id":"algt6407ye2ni5g","client_secret":"[***redacted***]","code":"qNW__3Oy_LgAAAAAAAAJPFofykpnyM-z9TB2CnveLSw","grant_type":"authorization_code","retirect_uri":"lightroom://com.alloyphoto.lightroom.export.dropbox"}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RESPONSE:&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 400 Bad Request
Server: nginx
Date: Wed, 28 Dec 2016 00:37:38 GMT
Content-Type: application/json
Content-Length: 97
Connection: keep-alive
User-Agent: 
X-Dropbox-Request-Id: 5d5f1e75ac3b4712ccf212dd60636603
{"error_description": "No auth function available for given request", "error": "invalid_request"}&lt;/PRE&gt;&lt;P&gt;In fact, this code worked successfully very recently. Has something been changed? What am I doing wrong? Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199622#M9294</guid>
      <dc:creator>Vladimir V.1</dc:creator>
      <dc:date>2019-05-29T09:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199627#M9296</link>
      <description>&lt;P&gt;Just noticed a typo in the request code (retirect_uri), should be &lt;EM&gt;redirect_uri. &lt;/EM&gt;But it is still not working.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 01:37:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199627#M9296</guid>
      <dc:creator>Vladimir V.1</dc:creator>
      <dc:date>2016-12-28T01:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199631#M9298</link>
      <description>&lt;P&gt;Next I realized I was hitting the wrong endpoint, needs to be &lt;A href="https://api.dropboxapi.com" target="_blank"&gt;https://api.dropboxapi.com&lt;/A&gt;, not &lt;SPAN class="st"&gt;&lt;A href="https://api.dropbox.com" target="_blank"&gt;https://api.dropbox.com&lt;/A&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st"&gt;Unfortunately I am still getting the same error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 01:54:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199631#M9298</guid>
      <dc:creator>Vladimir V.1</dc:creator>
      <dc:date>2016-12-28T01:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199633#M9300</link>
      <description>&lt;P&gt;Thanks for the report!&amp;nbsp;The request payload for &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;/oauth2/token&lt;/A&gt; is expected to be delivered with a content type&amp;nbsp;of&amp;nbsp;"application/x-www-form-urlencoded", per &lt;A href="https://tools.ietf.org/html/rfc6749#section-4.1.3" target="_self"&gt;RFC 6749 Section 4.1.3&lt;/A&gt;. It's possible we may have also been accepting "application/json" though. We'll look into it, but in the meantime, you can switch to&amp;nbsp;"application/x-www-form-urlencoded", which I've confirmed is working as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, for reference, but&amp;nbsp;api.dropbox.com and&amp;nbsp;api.dropboxapi.com are supported for this endpoint.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 02:05:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199633#M9300</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-28T02:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199685#M9310</link>
      <description>I can't seem to find if/when we accepted JSON on this endpoint. Are you sure this previously worked with that content type?&lt;BR /&gt;&lt;BR /&gt;In any case, x-www-form-urlencoded is the right way to call this. Is that working for you?</description>
      <pubDate>Wed, 28 Dec 2016 16:44:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199685#M9310</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-28T16:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199699#M9318</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;I think you are right, I recently updated a large chunk of the code when I migrated my plugin from API v1 to v2. The v2 documentation states that RPC enpoints&amp;nbsp;&lt;SPAN&gt;on the &lt;/SPAN&gt;api.dropboxapi.com&lt;SPAN&gt; domain accept arguments as JSON in the request body.&amp;nbsp;&amp;nbsp;For that reason I made all API calls to submit the payload in JSON, and that is where the code flow stopped working (which I didn't notice immediately). Either the documentation needs to be very explicit about the expected content type of that call, or the backend needs to be updated to accept JSON and thus provide claimed consistency. If I had a choice I'd go for option #2 as there is probably no valid reason for that particular endpoint not to recognize JSON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, thanks for your prompt attention to this issue, I got the code working by reverting the call to form-urlencoded format.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 18:31:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199699#M9318</guid>
      <dc:creator>Vladimir V.1</dc:creator>
      <dc:date>2016-12-28T18:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199736#M9324</link>
      <description>Thanks for confirming that. I'm glad to hear this is sorted out.&lt;BR /&gt;&lt;BR /&gt;The OAuth endpoints are a little different than the API endpoints, so I'll ask the team to clarify the documentation at least.</description>
      <pubDate>Wed, 28 Dec 2016 21:18:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/199736#M9324</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-28T21:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization code flow no longer works?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/241024#M13410</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hi Vladimir,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to hear about the fix. I'm also working on migration from V1 to V2 API. Can you please provide code block of GetAccessToken() using new end point "&lt;A href="https://api.dropboxapi.com/oauth2/token&amp;quot;.&amp;nbsp;" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token".&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would be really helpful.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 08:53:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authorization-code-flow-no-longer-works/m-p/241024#M13410</guid>
      <dc:creator>SauravAnand</dc:creator>
      <dc:date>2017-09-11T08:53:04Z</dc:date>
    </item>
  </channel>
</rss>

