<?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 OAuth2.0 throws invalid_grant type message while fetching the tokens from Xamarin forms Android app in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/268801#M15840</link>
    <description>&lt;P&gt;I am using OAuth2.0 in my xamarin application and when i try to get the access token using the OAuth settings mentioned below I am able to get the access token, post my image on dropbx and everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configurations used in OAuth2.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private const string Dbx_ClientId = "DROPBOX-APP-CLIENT-ID";&lt;BR /&gt;private const string Dbx_Secret = "DROPBOX-APP-CLIENT-SECRET";&lt;BR /&gt;private const string Dbx_AuthUrl = "&lt;A href="https://www.dropbox.com/oauth2/authorize" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt;";&lt;BR /&gt;private const string Dbx_AccessTokenUrl = "&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt;";&lt;BR /&gt;private const string Dbx_CallBack = "&lt;A href="https://www.dropbox.com/callback" target="_blank"&gt;https://www.dropbox.com/callback&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The library used to do the OAuth2.0 call from Xamarin app is Xamarin.Auth version 1.5.0.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's just I don't know why it shows an invalid_grant message to the user before it does that. I am doing the same thing in iOS and over there it never shows this message however when am working with android it shows this message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do i need to pass something else when am trying to call the service through android?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot_1521146545.png" style="width: 240px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2625i67B1BB0F3E1E65E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_1521146545.png" alt="Screenshot_1521146545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot_1521146590.png" style="width: 240px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2624i00835D0197733B80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_1521146590.png" alt="Screenshot_1521146590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please let me know what's the right way of doing this to avoid seeing the invalid_grant messages.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:14:42 GMT</pubDate>
    <dc:creator>codecat15</dc:creator>
    <dc:date>2019-05-29T09:14:42Z</dc:date>
    <item>
      <title>OAuth2.0 throws invalid_grant type message while fetching the tokens from Xamarin forms Android app</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/268801#M15840</link>
      <description>&lt;P&gt;I am using OAuth2.0 in my xamarin application and when i try to get the access token using the OAuth settings mentioned below I am able to get the access token, post my image on dropbx and everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Configurations used in OAuth2.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private const string Dbx_ClientId = "DROPBOX-APP-CLIENT-ID";&lt;BR /&gt;private const string Dbx_Secret = "DROPBOX-APP-CLIENT-SECRET";&lt;BR /&gt;private const string Dbx_AuthUrl = "&lt;A href="https://www.dropbox.com/oauth2/authorize" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt;";&lt;BR /&gt;private const string Dbx_AccessTokenUrl = "&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt;";&lt;BR /&gt;private const string Dbx_CallBack = "&lt;A href="https://www.dropbox.com/callback" target="_blank"&gt;https://www.dropbox.com/callback&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The library used to do the OAuth2.0 call from Xamarin app is Xamarin.Auth version 1.5.0.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's just I don't know why it shows an invalid_grant message to the user before it does that. I am doing the same thing in iOS and over there it never shows this message however when am working with android it shows this message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do i need to pass something else when am trying to call the service through android?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot_1521146545.png" style="width: 240px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2625i67B1BB0F3E1E65E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_1521146545.png" alt="Screenshot_1521146545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot_1521146590.png" style="width: 240px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2624i00835D0197733B80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_1521146590.png" alt="Screenshot_1521146590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please let me know what's the right way of doing this to avoid seeing the invalid_grant messages.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/268801#M15840</guid>
      <dc:creator>codecat15</dc:creator>
      <dc:date>2019-05-29T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2.0 throws invalid_grant type message while fetching the tokens from Xamarin forms Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/268802#M15841</link>
      <description>Are you able to print out the full /oauth2/token HTTP response body for this error? It should contain a more detailed error message along with 'invalid_grant'.&lt;BR /&gt;&lt;BR /&gt;Also, why are you using "&lt;A href="https://www.dropbox.com/callback" target="_blank"&gt;https://www.dropbox.com/callback&lt;/A&gt;"? That's not a valid page on dropbox.com. (You can use &lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt; if you want though.)</description>
      <pubDate>Thu, 15 Mar 2018 21:18:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/268802#M15841</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-15T21:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2.0 throws invalid_grant type message while fetching the tokens from Xamarin forms Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/270597#M15988</link>
      <description>&lt;P&gt;Thanks for the suggestion for the redirect url, since i am doing this in a mobile application the blocker that i am facing is it shows invalid_grant message for like 2seconds on the screen and then vanishes and takes me back to my mobile app with the token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i can do is wrap everything i did for my xamarin project and send it to you for reference and then maybe you can have a look at it if my explanation is not clear through comments or i can send a video too let me know&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 14:25:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/270597#M15988</guid>
      <dc:creator>codecat15</dc:creator>
      <dc:date>2018-03-30T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2.0 throws invalid_grant type message while fetching the tokens from Xamarin forms Android</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/270602#M15989</link>
      <description>Can you print out the actual /oauth2/token HTTP response body? That would be the best way to troubleshoot this.</description>
      <pubDate>Fri, 30 Mar 2018 14:40:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-0-throws-invalid-grant-type-message-while-fetching-the/m-p/270602#M15989</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-30T14:40:28Z</dc:date>
    </item>
  </channel>
</rss>

