<?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 Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/466997#M23819</link>
    <description>&lt;P&gt;I have got the problem with my app.&lt;/P&gt;
&lt;P&gt;It worked fine for long time and now somethign happend. I can not understand what is wrong here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is with oauth2 auth process.&lt;/P&gt;
&lt;P&gt;The first step works fine. I call&amp;nbsp;&lt;A href="https://www.dropbox.com/oauth2/authorize&amp;nbsp;" target="_blank" rel="noopener"&gt;https://www.dropbox.com/oauth2/authorize&amp;nbsp;&lt;/A&gt; with my client_id, redirect_url (it is registered in the app).&lt;/P&gt;
&lt;P&gt;User approves access and dropbox redirects me back to the redirect_url and there is the code argument (access code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i call&amp;nbsp;/oauth2/token to exchance this code for the access token , i have the http 400 error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2020-11-04 08:19:43

&amp;gt; POST /oauth2/token HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 5.1) Chrome/23.0.1271.95 Safari/537.11
Host: api.dropboxapi.com
Accept: application/x-ms-application, image/gif, application/xaml+xml, *\/*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Content-Length: 223

grant_type=authorization_code&amp;amp;code=Vwb***EU_yE&amp;amp;client_id=7cor***3&amp;amp;client_secret=******&amp;amp;redirect_uri=https%3A%2F%2Fdev7-roman-web1.*****.com%2Fdropbox_oauthcalback.htm

* upload completely sent off: 223 out of 223 bytes
&amp;lt; HTTP/1.1 400 Bad Request
&amp;lt; Content-Length: 11
&amp;lt; Content-Type: text/plain
&amp;lt; Date: Wed, 04 Nov 2020 08:19:10 GMT
&amp;lt; Server: envoy
&amp;lt; Connection: close
&amp;lt;
* Closing connection 12

Bad Request&lt;/PRE&gt;
&lt;P&gt;WHat can be wrong with it? any idea?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 14:14:47 GMT</pubDate>
    <dc:creator>Gelembjuk</dc:creator>
    <dc:date>2020-11-04T14:14:47Z</dc:date>
    <item>
      <title>Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/466997#M23819</link>
      <description>&lt;P&gt;I have got the problem with my app.&lt;/P&gt;
&lt;P&gt;It worked fine for long time and now somethign happend. I can not understand what is wrong here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is with oauth2 auth process.&lt;/P&gt;
&lt;P&gt;The first step works fine. I call&amp;nbsp;&lt;A href="https://www.dropbox.com/oauth2/authorize&amp;nbsp;" target="_blank" rel="noopener"&gt;https://www.dropbox.com/oauth2/authorize&amp;nbsp;&lt;/A&gt; with my client_id, redirect_url (it is registered in the app).&lt;/P&gt;
&lt;P&gt;User approves access and dropbox redirects me back to the redirect_url and there is the code argument (access code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i call&amp;nbsp;/oauth2/token to exchance this code for the access token , i have the http 400 error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2020-11-04 08:19:43

&amp;gt; POST /oauth2/token HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 5.1) Chrome/23.0.1271.95 Safari/537.11
Host: api.dropboxapi.com
Accept: application/x-ms-application, image/gif, application/xaml+xml, *\/*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Content-Length: 223

grant_type=authorization_code&amp;amp;code=Vwb***EU_yE&amp;amp;client_id=7cor***3&amp;amp;client_secret=******&amp;amp;redirect_uri=https%3A%2F%2Fdev7-roman-web1.*****.com%2Fdropbox_oauthcalback.htm

* upload completely sent off: 223 out of 223 bytes
&amp;lt; HTTP/1.1 400 Bad Request
&amp;lt; Content-Length: 11
&amp;lt; Content-Type: text/plain
&amp;lt; Date: Wed, 04 Nov 2020 08:19:10 GMT
&amp;lt; Server: envoy
&amp;lt; Connection: close
&amp;lt;
* Closing connection 12

Bad Request&lt;/PRE&gt;
&lt;P&gt;WHat can be wrong with it? any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 14:14:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/466997#M23819</guid>
      <dc:creator>Gelembjuk</dc:creator>
      <dc:date>2020-11-04T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467002#M23820</link>
      <description>&lt;P&gt;I also have this exact problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to have occurred afer this change:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.tech/developers/now-available--scoped-apps-and-enhanced-permissions" target="_blank"&gt;https://dropbox.tech/developers/now-available--scoped-apps-and-enhanced-permissions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;but in that blog it says that existing Apps will continue to work.&lt;BR /&gt;&lt;BR /&gt;DropBox this is a ig problem for those of us who have existing apps.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 09:12:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467002#M23820</guid>
      <dc:creator>UKCloud</dc:creator>
      <dc:date>2020-11-04T09:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467008#M23821</link>
      <description>&lt;P&gt;I seems found the reason .&lt;/P&gt;&lt;P&gt;My endpoint to do the second step was&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.dropboxapi.com/oauth2/token&amp;nbsp;" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;when i replaced it to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropboxapi.com/oauth2/token" target="_blank"&gt;https://www.dropboxapi.com/oauth2/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;all wtarted to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;before it worked.&amp;nbsp; maybe that endpoint support for oauth2 was canceled at some point and i didn't notice&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 09:29:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467008#M23821</guid>
      <dc:creator>Gelembjuk</dc:creator>
      <dc:date>2020-11-04T09:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467014#M23822</link>
      <description>&lt;P&gt;I hve read the docs.&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/documentation/http/documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It ways the endpoint must be&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.dropboxapi.com/oauth2/token&lt;/PRE&gt;&lt;P&gt;So, now i am confused.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 10:10:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467014#M23822</guid>
      <dc:creator>Gelembjuk</dc:creator>
      <dc:date>2020-11-04T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467017#M23823</link>
      <description>&lt;P&gt;Ok. Other possible reason of my problem is that there was wrong User-Agent string n the request (second line from bottom)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 10:13:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467017#M23823</guid>
      <dc:creator>Gelembjuk</dc:creator>
      <dc:date>2020-11-04T10:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467113#M23826</link>
      <description>&lt;P&gt;This step of the OAuth flow should be accessed on&amp;nbsp;&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt; , not www.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This endpoint is working as expected for me, and it sounds like the original poster here found the issue with the request they were sending.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1370096"&gt;@UKCloud&lt;/a&gt;&amp;nbsp;If you're still having trouble with this endpoint though, please share the details of the problem so we can help. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 16:04:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-oAuth2-auth-process-fails-with-400-Bad-Request-when-call/m-p/467113#M23826</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-04T16:04:41Z</dc:date>
    </item>
  </channel>
</rss>

