<?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: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142606#M4516</link>
    <description>&lt;P&gt;Ah!&amp;nbsp;I can reproduce this too, but&amp;nbsp;only when the user is authorizing an app they've already authorized (so they skip the screen asking them to "allow" access).&amp;nbsp;I don't understand why this makes a difference&amp;nbsp;as to whether the DocumentCompleted event is fired, but it seems to. (You can try this yourself by revoking your app's access via&amp;nbsp;&lt;A href="https://www.dropbox.com/account/security" rel="nofollow noreferrer"&gt;https://www.dropbox.com/account/security&lt;/A&gt; and then trying again. You should see the DocumentCompleted&amp;nbsp;event fire as expected.)&lt;/P&gt;
&lt;P&gt;To fix this, I'd recommend using the Navigated event instead. This seems to reliably fire in both cases. I'm going to update the blog post to&amp;nbsp;suggest that. Please let me know if it works for you.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 03:53:07 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-12-16T03:53:07Z</dc:date>
    <item>
      <title>OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142600#M4510</link>
      <description>&lt;P&gt;Currently I'm developing a .Net WinForms desktop app.&lt;/P&gt;
&lt;P&gt;I initiate a token-based OAuth2 flow with this URL in IE11 (or to be more precise: the WebBrowser control of .Net WinForms):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=&amp;lt;myappid&amp;gt;&amp;amp;redirect_uri=&amp;lt;myRedirectUrl&amp;gt;oauth_callback&amp;amp;state=&amp;lt;myState" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=&amp;lt;myappid&amp;gt;&amp;amp;redirect_uri=&amp;lt;myRedirectUrl&amp;gt;oauth_callback&amp;amp;state=&amp;lt;myState&lt;/A&gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;I can login to an account and apply accept the app request. After that I should be redirected to &amp;lt;myRedirectUrl&amp;gt;&lt;/P&gt;
&lt;P&gt;I get two different results:&lt;/P&gt;
&lt;P&gt;1. If &amp;lt;myRedirectUrl&amp;gt; is "http://localhost" then I get "dnserror.html" in browser. Thsi should not happen.&lt;/P&gt;
&lt;P&gt;2. If &amp;lt;myRedirectUrl&amp;gt; is a real URL I get redirected to the page. But: since it seems to be some JavaScript.Magic to redirect, the page is "redirected/reloaded": neither DocumentCompleted event nor Navigating event is fired. Therefore I never can determine, when the redirected page is displayed in browser. For me the best woult be, if Navigating event would be fired.&lt;/P&gt;
&lt;P&gt;What can I do to get the result by code like for other OAuth2 providers?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:37:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142600#M4510</guid>
      <dc:creator>Daniel B.97</dc:creator>
      <dc:date>2019-05-29T09:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142601#M4511</link>
      <description>&lt;P&gt;Could you share your code?&lt;/P&gt;
&lt;P&gt;Also, have you seen&amp;nbsp;&lt;A href="https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/&lt;/A&gt;. The code there, at least at the time I wrote it,&amp;nbsp;worked. (But note that there I never tried a localhost&amp;nbsp;URL.)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 02:06:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142601#M4511</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-12-14T02:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142602#M4512</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes I know this Blog post and I found several such solutions. But I can't get it to work.&lt;/P&gt;
&lt;P&gt;You can find my code here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Kyrodan/KeeAnywhere/blob/develop/KeeAnywhere/OAuth2/OAuth2Form.cs" target="_blank" rel="nofollow noreferrer"&gt;https://github.com/Kyrodan/KeeAnywhere/blob/develop/KeeAnywhere/OAuth2/OAuth2Form.cs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Kyrodan/KeeAnywhere/blob/develop/KeeAnywhere/StorageProviders/Dropbox/DropboxStorageConfigurator.cs" target="_blank" rel="nofollow noreferrer"&gt;https://github.com/Kyrodan/KeeAnywhere/blob/develop/KeeAnywhere/StorageProviders/Dropbox/DropboxStorageConfigurator.cs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is, that DocumentCompleted is not fired for the redirected URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 16:06:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142602#M4512</guid>
      <dc:creator>Daniel B.97</dc:creator>
      <dc:date>2015-12-14T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142603#M4513</link>
      <description>&lt;P&gt;We'll try to reproduce this. Could you tell us what version of Windows you're running on? (I assume Windows 10?)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 01:16:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142603#M4513</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-12-15T01:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142604#M4514</link>
      <description>&lt;P&gt;I'm unable to reproduce this on Windows 10. I created a new Windows Forms app, added a web browser control to it, and wrote the following code. I saw a message for loading (among others), the redirect_receiver page, complete with an access token. Perhaps you can&amp;nbsp;try this stripped-down version of the code and see if it works for you?&lt;/P&gt;
&lt;PRE&gt;public partial class Form1 : Form&lt;BR /&gt;{&lt;BR /&gt;    public Form1()&lt;BR /&gt;    {&lt;BR /&gt;        InitializeComponent();&lt;BR /&gt;        this.webBrowser1.DocumentCompleted += WebBrowser1_DocumentCompleted;&lt;BR /&gt;        this.webBrowser1.Navigate("https://www.dropbox.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=0pr10otpma2qtln&amp;amp;redirect_uri=https://www.dropbox.com/1/oauth2/redirect_receiver");&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    private void WebBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) {&lt;BR /&gt;        MessageBox.Show("document completed: " + e.Url.AbsoluteUri);&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 05:48:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142604#M4514</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-12-15T05:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142605#M4515</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;I tested it on 2 different Windows 7 machines and your reduced code does not work. What is different to your code: I changed app-id to my id because your app-id reached user limit.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 15:45:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142605#M4515</guid>
      <dc:creator>Daniel B.97</dc:creator>
      <dc:date>2015-12-15T15:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142606#M4516</link>
      <description>&lt;P&gt;Ah!&amp;nbsp;I can reproduce this too, but&amp;nbsp;only when the user is authorizing an app they've already authorized (so they skip the screen asking them to "allow" access).&amp;nbsp;I don't understand why this makes a difference&amp;nbsp;as to whether the DocumentCompleted event is fired, but it seems to. (You can try this yourself by revoking your app's access via&amp;nbsp;&lt;A href="https://www.dropbox.com/account/security" rel="nofollow noreferrer"&gt;https://www.dropbox.com/account/security&lt;/A&gt; and then trying again. You should see the DocumentCompleted&amp;nbsp;event fire as expected.)&lt;/P&gt;
&lt;P&gt;To fix this, I'd recommend using the Navigated event instead. This seems to reliably fire in both cases. I'm going to update the blog post to&amp;nbsp;suggest that. Please let me know if it works for you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 03:53:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142606#M4516</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-12-16T03:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142607#M4517</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;I fixed it your way and it basically works.&lt;/P&gt;
&lt;P&gt;But I encountered some weird behavior:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;ADDRESS&gt;If authorization is done and redirected to &lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt; is performed I can grab the token from the URL. But additionally to that my standard browser (in my case Firefox) opens up with this page. That's not expected&lt;/ADDRESS&gt;&lt;/LI&gt;
&lt;LI&gt;If I'm not authorized in any browser the authorization flow askes to login. That's fine. But if I'm already logged in prior authorization the behavior differs whether I've already authorized the app (login page is displayed, after lgging in, not further step is required by user) or not (no login page is displayed; user has to authorize access).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Especially the first bullet point is not acceptable for me. Maybe the second could be solved by navigating first to logout page and after that to the authorization URL (that's the same behavior to other OAuth services).&lt;/P&gt;
&lt;P&gt;Regrads,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 16:51:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142607#M4517</guid>
      <dc:creator>Daniel B.97</dc:creator>
      <dc:date>2015-12-16T16:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142608#M4518</link>
      <description>&lt;P&gt;For #1, I have no idea what's happening, but&amp;nbsp;I can't see how it would be a Dropbox issue. It certainly doesn't happen in the code I shared earlier,&amp;nbsp;so it also doesn't seem to be an issue with the WebBrowser control under its default settings.&lt;/P&gt;
&lt;P&gt;For #2,&amp;nbsp;I had a little trouble following what happens under what circumstances, but it&amp;nbsp;doesn't sound like the expected behavior to me. What I would expect:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If already logged in,&amp;nbsp;no login page is displayed (i.e. no email/password fields present).&lt;/LI&gt;
&lt;LI&gt;Otherwise, the login page is displayed.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Regardless of which of&amp;nbsp;those happened:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If the&amp;nbsp;user has an existing active access token for the app, they're not asked to authorize the app again (no screen with "allow" button).&amp;nbsp;Instead, they're automatically redirected to the redirect URI.&lt;/LI&gt;
&lt;LI&gt;Otherwise, the user is asked to authorize the app (click the "allow" button). Only after doing that are they redirected to the redirect URI.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Does that match what you're seeing or not?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 06:43:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142608#M4518</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-12-17T06:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142609#M4519</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;I fixed my #2 by myself.&lt;/P&gt;
&lt;P&gt;#1 is still open: On &lt;STRONG&gt;Windows 7&lt;/STRONG&gt; using your solution a web browser window is opened in the last authoriziation step (if the app was not authorized before). Your solution works on Windows 10 without glitches, can't try it on Win8/8.1.&lt;/P&gt;
&lt;P&gt;Maybe the root cause is the different behavior of the WebBrowser control on Win7 and Win10 (seems to use different IE "compatibility"). I didn't got it fixed by myself without exchanging the WebBrowser control with another browser control (which I don't want).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 01:20:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142609#M4519</guid>
      <dc:creator>Daniel B.97</dc:creator>
      <dc:date>2016-01-15T01:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142610#M4520</link>
      <description>&lt;P&gt;Please let us know&amp;nbsp;what you learn about the Windows 7 issue.&amp;nbsp;Again, it can't really be the fault of Dropbox itself, but maybe there's a bug in the WebBrowser control? (Or maybe there's some *expected* reason why the WebBrowser control is supposed to launch an external browser, but that would be surprising.)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 07:44:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142610#M4520</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-01-15T07:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142611#M4521</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;I want to report I'm seeing similar issue when running the WebBrowser control under Windows Vista. It is most probably a bug/incompatibility in the WebBrowser. My current suspicion is that the WebBrowser control have an issue handling a redirect url which&amp;nbsp;includes fragment&amp;nbsp;(#) in certain situations. My question to you is &lt;STRONG&gt;why&amp;nbsp;Dropbox does the redirect with fragment&lt;/STRONG&gt; and not the regular query (?) tag when doing the token flow?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps to reproduce the issue in my environment.&lt;/P&gt;
&lt;P&gt;1. Using token flow authorization.&lt;/P&gt;
&lt;P&gt;2. The application has already been authorized.&lt;/P&gt;
&lt;P&gt;3. The WebBrowser control opens a page asking to enter credentials. Enter credentials and press 'Sign in'.&lt;/P&gt;
&lt;P&gt;4. The WebBrowser&amp;nbsp;Navigated event is called. However everything after the fragment (#) is removed.&lt;/P&gt;
&lt;P&gt;Handling the&amp;nbsp;DocumentCompleted or Navigating events is not working either.&lt;/P&gt;
&lt;P&gt;-------------------------&lt;/P&gt;
&lt;P&gt;One more&amp;nbsp;interesting observation. If I don't close the Desktop application and re-open the dialog containing the WebBrowser control, the Dropbox doesn't ask me for credentials and the token flow is called properly with the access_token fragment included.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 23:28:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142611#M4521</guid>
      <dc:creator>Nekobul</dc:creator>
      <dc:date>2016-06-07T23:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142612#M4522</link>
      <description>&lt;P&gt;"why&amp;nbsp;Dropbox does the redirect with fragment and not the regular query (?) tag when doing the token flow?"&lt;/P&gt;
&lt;P&gt;That's how OAuth 2 works. As to why OAuth 2 works that way, it's to prevent the token from being sent to the server.&amp;nbsp;The&amp;nbsp;query string is part of the URL that's sent to the server, while the fragment is not.&amp;nbsp;The token&amp;nbsp;flow is for client-side apps, so the fragment is&amp;nbsp;a way to communicate the token to the&amp;nbsp;app without having it&amp;nbsp;leak&amp;nbsp;elsewhere.&lt;/P&gt;
&lt;P&gt;Nekobul, the behavior you describe sounds different from either of the issues already raised in this thread. It sounds like&amp;nbsp;the Navigated event is called but the URL you see is lacking the URL fragment. Is that right?&lt;/P&gt;
&lt;P&gt;One guess: if you're using&amp;nbsp;&lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt; as your redirect URI,&amp;nbsp;that page removes the fragment of the URL after a short period (e.g. to keep someone from copy/pasting the URL and leaking their token somewhere). Is it possible that Navigated is&amp;nbsp;firing multiple times: once for the initial load of /redirect_receiver (with the URL fragment) and then once&amp;nbsp;after the fragment is removed?&amp;nbsp;Try logging/alerting in Navigated to see if it's being&amp;nbsp;called more than once. The first call is the only one that will have the fragment.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 00:22:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142612#M4522</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-08T00:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142613#M4523</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;
&lt;P&gt;Thank you for the&amp;nbsp;quick reply! When tracing using the Fiddler app, I see the following:&lt;/P&gt;
&lt;P&gt;1. GET&amp;nbsp;&lt;A href="https://www.dropbox.com/oauth2/authorize" rel="nofollow noreferrer"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt; request and&amp;nbsp;Dropbox responds with 302 redirect with&amp;nbsp;&amp;nbsp;&lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver#access_token" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver#access_token&lt;/A&gt; ...&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;GET &lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt; request and then response from dropbox.&lt;/P&gt;
&lt;P&gt;I get only one call in the&amp;nbsp;Navigated event handler and it contains only :&amp;nbsp;&lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver#" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver#&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 02:41:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142613#M4523</guid>
      <dc:creator>Nekobul</dc:creator>
      <dc:date>2016-06-08T02:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142614#M4524</link>
      <description>&lt;P&gt;Nekobul,&amp;nbsp;can you share your code for how you're getting the URI in your Navigated event handler?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 02:46:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142614#M4524</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-08T02:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142615#M4525</link>
      <description>&lt;P&gt;The issue I'm seeing is very similar to the issue described &lt;A href="http://stackoverflow.com/questions/6487261/wpf-webbrowser-detecting-redirects" target="_blank" rel="nofollow noreferrer"&gt;here&lt;/A&gt;. However I'm not using WPF. The WebBrowser is&amp;nbsp;the standard Windows Forms.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 02:48:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142615#M4525</guid>
      <dc:creator>Nekobul</dc:creator>
      <dc:date>2016-06-08T02:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142616#M4526</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;
&lt;P&gt;The code works fine if I reload an other already authorized page. When running under the debugger, the supplied Url from&amp;nbsp;WebBrowserNavigatedEventArgs is clearly maimed when authorizing initially.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 02:50:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142616#M4526</guid>
      <dc:creator>Nekobul</dc:creator>
      <dc:date>2016-06-08T02:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142617#M4527</link>
      <description>&lt;P&gt;Have you tried DocumentCompleted or maybe Navigating?&lt;/P&gt;
&lt;P&gt;Also, have you tried using a different redirect URI, like &lt;A href="https://www.example.org" rel="nofollow noreferrer"&gt;https://www.example.org&lt;/A&gt;? I'm just curious if this relates to the JS on the page&amp;nbsp;removing the fragment or if it's&amp;nbsp;somehow an inherent issue with the event you're listening for.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 02:54:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142617#M4527</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-08T02:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142618#M4528</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;
&lt;P&gt;Yes, I have tried DocumentCompleted and Navigating. The fragment is not removed by Dropbox. As I've said I can see in Fiddler the correct redirect url with the fragment is provided. My suspicion is that the WebBrowser control has an issue handling the fragment element in certain situations. So the sequence which fails is:&lt;/P&gt;
&lt;P&gt;1. The Dropbox page for authorization is opened.&lt;/P&gt;
&lt;P&gt;2. The page expects entry of credentials and then pressing Sign-in.&lt;/P&gt;
&lt;P&gt;If there is no user interaction involved, the fragment is properly provided in the Navigated event. If there is a WebBrowser user interaction involved, the fragment is maimed in the Navigated event handler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 02:59:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142618#M4528</guid>
      <dc:creator>Nekobul</dc:creator>
      <dc:date>2016-06-08T02:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 implicit grant (token flow) does not work in IE/.Net Winform WebBrowser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142619#M4529</link>
      <description>&lt;P&gt;"The fragment is not removed by Dropbox."&lt;/P&gt;
&lt;P&gt;/redirect_receiver has JavaScript on it that removes the fragment after the page is loaded. The reason I'm asking about other redirect URIs is because they won't have that behavior.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 03:00:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-implicit-grant-token-flow-does-not-work-in-IE-Net-Winform/m-p/142619#M4529</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-08T03:00:22Z</dc:date>
    </item>
  </channel>
</rss>

