<?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 Problem to get the auth code in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231099#M12592</link>
    <description>&lt;P&gt;Hi All: I have a problem when I was trying to get the auth code. I am using WPF and tring to get the "auth-code-input" from the webpage that dropbox direct to. But the when I was using the following code it alway get null. For now, I set the redirct_uri to empty, does this matter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;mshtml.IHTMLDocument3 doc3 = WebBrowserAuth.Document as mshtml.IHTMLDocument3;
var myHtmlElement = doc3.getElementById("auth-code-input");
string strAuthCode = myHtmlElement.getAttribute("value");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Many thanks in advance!&lt;/DIV&gt;</description>
    <pubDate>Wed, 29 May 2019 09:20:52 GMT</pubDate>
    <dc:creator>SimonFan</dc:creator>
    <dc:date>2019-05-29T09:20:52Z</dc:date>
    <item>
      <title>Problem to get the auth code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231099#M12592</link>
      <description>&lt;P&gt;Hi All: I have a problem when I was trying to get the auth code. I am using WPF and tring to get the "auth-code-input" from the webpage that dropbox direct to. But the when I was using the following code it alway get null. For now, I set the redirct_uri to empty, does this matter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;mshtml.IHTMLDocument3 doc3 = WebBrowserAuth.Document as mshtml.IHTMLDocument3;
var myHtmlElement = doc3.getElementById("auth-code-input");
string strAuthCode = myHtmlElement.getAttribute("value");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Many thanks in advance!&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231099#M12592</guid>
      <dc:creator>SimonFan</dc:creator>
      <dc:date>2019-05-29T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to get the auth code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231151#M12600</link>
      <description>[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/44961671/dropbox-api-get-the-auth-code-issue" target="_blank"&gt;https://stackoverflow.com/questions/44961671/dropbox-api-get-the-auth-code-issue&lt;/A&gt; ]&lt;BR /&gt;&lt;BR /&gt;I'm not sure I understand your question, but it sounds like you may be trying to query the authorization code out of the HTML of the page after the user authorizes your app on /oauth2/authorize.&lt;BR /&gt;&lt;BR /&gt;You shouldn't try to retrieve the authorization code that way, as that page is subject to change. If you want to get the authorization code programmatically, you should instead supply a redirect URI and get it from the URL parameter itself. You can find more information on how this works 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 13:26:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231151#M12600</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-07T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to get the auth code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231332#M12610</link>
      <description>Hi Greg： Thank you for your reply. I am working on desktop software with WPF so I don't have redirect URI, can I set redirect URI to https://localhost ？</description>
      <pubDate>Sun, 09 Jul 2017 09:47:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231332#M12610</guid>
      <dc:creator>SimonFan</dc:creator>
      <dc:date>2017-07-09T09:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to get the auth code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231448#M12618</link>
      <description>Yes, localhost redirect URIs like this are allowed.</description>
      <pubDate>Mon, 10 Jul 2017 15:33:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-to-get-the-auth-code/m-p/231448#M12618</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-10T15:33:34Z</dc:date>
    </item>
  </channel>
</rss>

