<?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: How to get access token from browser? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64694#M1982</link>
    <description>&lt;P&gt;I'm not sure what you're trying to do. The /authorize URL you're constructing is one that the user should browse to, not something you should try to&amp;nbsp;invoke programmatically. It's the page where the user logs in to Dropbox and then clicks the "Allow" button to grant access to your app.&lt;/P&gt;
&lt;P&gt;Have you tried following the&amp;nbsp;example code here?&amp;nbsp;&lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm" target="_blank" rel="nofollow noreferrer"&gt;http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Aug 2015 23:55:59 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-08-30T23:55:59Z</dc:date>
    <item>
      <title>How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64689#M1977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using your new .net sdk&amp;nbsp;v2 Dropbox.Api . I want to open the browser with authorize uri , then login and then get all the uri and parse it with your function called&amp;nbsp;ParseTokenFragment(). It is possible?&lt;/P&gt;
&lt;P&gt;Or maybe is another solution . All I want is to avoid creating a WebBrowser control in my application and then calling Navigating event for it.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:40:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64689#M1977</guid>
      <dc:creator>Nenciu D.</dc:creator>
      <dc:date>2019-05-29T09:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64690#M1978</link>
      <description>&lt;P&gt;What we usually&amp;nbsp;suggest is to use&amp;nbsp;the WebBrowser control. Why are you trying to avoid that?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 01:31:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64690#M1978</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-08-26T01:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64691#M1979</link>
      <description>&lt;P&gt;Thanks for answering Steve.&amp;nbsp;I just want to use a button connect and then a browser tab to open for log in ( in Internet Explorer for example ) and after the login to store the access token in my app. Is this possible ? Same thing is done by this function of Google Drive :&amp;nbsp;&lt;BR /&gt;GoogleWebAuthorizationBroker.AuthorizeAsync(ClientSecret, scopes, Environment.UserName, CancellationToken.None,&amp;nbsp;new SavedDataStore(GoogleTokenStoredResponse)).Result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 14:40:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64691#M1979</guid>
      <dc:creator>Nenciu D.</dc:creator>
      <dc:date>2015-08-26T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64692#M1980</link>
      <description>&lt;P&gt;We don't have&amp;nbsp;anything like that built in. We encourage people to use an embedded web browser in their app.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 03:59:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64692#M1980</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-08-27T03:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64693#M1981</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;I tried to do something like this to get the uri ,but in my response I don't get the new uri, which contains the access token .&lt;/P&gt;
&lt;P&gt;Uri uri = new Uri("&lt;A href="https://api.dropboxapi.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=my_client_id" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=my_client_id&lt;/A&gt;");&lt;BR /&gt; System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(uri);&lt;BR /&gt; request.Method = System.Net.WebRequestMethods.Http.Post;&lt;/P&gt;
&lt;P&gt;System.Net.WebResponse response = request.GetResponse();&lt;/P&gt;
&lt;P&gt;Am I missing something or this is not correct?&lt;/P&gt;
&lt;P&gt;PS: If i create a uri like&amp;nbsp;&lt;A href="https://www.dropbox.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=my_client_id&amp;amp;redirect_uri=my_uri" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth2/authorize?response_type=token&amp;amp;client_id=my_client_id&amp;amp;redirect_uri=my_uri&lt;/A&gt; , I get a new uri like this&amp;nbsp;my_redirect_uri/#access_token=dhGV8R5SRjIDDDDDDa8xOY5JXtDiTahVAg4I9eP3gsvtJqxuyc_OKfM7iTYfd&amp;amp;token_type=bearer&amp;amp;uid=2623212259 . This is the uri which I want to get with my request.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2015 23:38:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64693#M1981</guid>
      <dc:creator>Nenciu D.</dc:creator>
      <dc:date>2015-08-30T23:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64694#M1982</link>
      <description>&lt;P&gt;I'm not sure what you're trying to do. The /authorize URL you're constructing is one that the user should browse to, not something you should try to&amp;nbsp;invoke programmatically. It's the page where the user logs in to Dropbox and then clicks the "Allow" button to grant access to your app.&lt;/P&gt;
&lt;P&gt;Have you tried following the&amp;nbsp;example code here?&amp;nbsp;&lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm" target="_blank" rel="nofollow noreferrer"&gt;http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2015 23:55:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64694#M1982</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-08-30T23:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64695#M1983</link>
      <description>&lt;P&gt;Yes . I tried this one(my first try).&amp;nbsp;Currently I'm using this method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Uri authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri(OauthResponseType.Token, appKey, RedirectUri, state: oauth2State);&lt;/P&gt;
&lt;P&gt;And then I called &amp;nbsp;System.Diagnostics.Process.Start(authorizeUri.ToString()) to open the browser with authorizeUri. Next step is that the user copies the responseUri to a textbox and then I have another button GetTokenBtn which calls ParseTokenFragment(responseUri) to obtain the token.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply said , what I &amp;nbsp;wanted was to open a the browser,which contains the authentification(email and password of dropbox user to skip authentification) with authorize uri , then the resulting uri(responseUri) from the browser to be sent back to my application and then to call from my application ParseTokenFragment(responseUri) to obtain my token.&lt;/P&gt;
&lt;P&gt;If that is not possible without searching into opened processes that will remain my solution.&lt;/P&gt;
&lt;P&gt;Thanks for your support&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 02:43:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64695#M1983</guid>
      <dc:creator>Nenciu D.</dc:creator>
      <dc:date>2015-08-31T02:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get access token from browser?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64696#M1984</link>
      <description>&lt;P&gt;You can theoretically do this by registering for a custom URL scheme and using that as your redirect URI, but what we recommend is to embed a web browser control in your app, as per the example I linked to.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 03:12:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-access-token-from-browser/m-p/64696#M1984</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-08-31T03:12:58Z</dc:date>
    </item>
  </channel>
</rss>

