<?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: Redirect without &amp;quot;Enter this code into&amp;quot; -&amp;gt; redirect not working (JAVA SDK) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363620#M20660</link>
    <description>&lt;P&gt;Exactly how your web request/response handling code will look and work will depend on what web framework you're using, so you'll need to write the relevant code for your app.&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;recommend trying out &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/web-file-browser" target="_self"&gt;the working web app example&lt;/A&gt; for a sample of how this would work though. The &lt;A href="https://github.com/dropbox/dropbox-sdk-java#running-the-examples" target="_self"&gt;instructions for running the examples can be found here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 21:01:34 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-09-05T21:01:34Z</dc:date>
    <item>
      <title>Redirect without "Enter this code into" -&gt; redirect not working (JAVA SDK)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363613#M20657</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem to integrate Dorpbox in my app.&lt;BR /&gt;I have entered in the GUI a redirect URL:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;http://localhost:8080/portal/cloudHoster.jsf&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I´m generating the url which I´m using to redirect to Dropbox to login / approve:&lt;/P&gt;
&lt;PRE&gt;	public String generateAuthorizeUrl() {

		// Read app info file (contains app key and app secret)
		DbxAppInfo appInfo;
		appInfo = new DbxAppInfo(APP_KEY, APP_SECRET);

		// Run through Dropbox API authorization process
		DbxRequestConfig requestConfig = new DbxRequestConfig("foo");
		DbxWebAuth webAuth = new DbxWebAuth(requestConfig, appInfo);
		
		
		DbxWebAuth.Request webAuthRequest = DbxWebAuth.newRequestBuilder().build();
		
		String authorizeUrl = webAuth.authorize(webAuthRequest);

		return authorizeUrl;
	}&lt;/PRE&gt;
&lt;P&gt;After I approve it, I get again another screen:&lt;BR /&gt;&lt;STRONG&gt;Enter this code into MyApp&amp;nbsp;to finish the process.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;How can I avoid this? I would like to redirect directly again to my page?&lt;/P&gt;
&lt;P&gt;Thank you for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 06:11:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363613#M20657</guid>
      <dc:creator>vished</dc:creator>
      <dc:date>2019-09-06T06:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect without "Enter this code into" -&gt; redirect not working (JAVA SDK)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363617#M20658</link>
      <description>&lt;P&gt;In addition to registering the redirect URI in the App Console like you mentioned, you should set the redirect URI you want to use in the code like &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/DbxWebAuth.Request.Builder.html#withNoRedirect--" target="_self"&gt;DbxWebAuth.newRequestBuilder().withRedirectUri(...).build()&lt;/A&gt;. There's &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/DbxWebAuth.html" target="_self"&gt;an example here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 20:50:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363617#M20658</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-05T20:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect without "Enter this code into" -&gt; redirect not working (JAVA SDK)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363619#M20659</link>
      <description>&lt;P&gt;Thank you, but should this be looking like with the&amp;nbsp;&lt;/P&gt;&lt;P&gt;HttpServletRequest &lt;SPAN class="s1"&gt;request&lt;/SPAN&gt;, HttpServletResponse &lt;SPAN class="s1"&gt;response ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;How should my class looks like? And also my function?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 20:56:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363619#M20659</guid>
      <dc:creator>vished</dc:creator>
      <dc:date>2019-09-05T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect without "Enter this code into" -&gt; redirect not working (JAVA SDK)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363620#M20660</link>
      <description>&lt;P&gt;Exactly how your web request/response handling code will look and work will depend on what web framework you're using, so you'll need to write the relevant code for your app.&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;recommend trying out &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/web-file-browser" target="_self"&gt;the working web app example&lt;/A&gt; for a sample of how this would work though. The &lt;A href="https://github.com/dropbox/dropbox-sdk-java#running-the-examples" target="_self"&gt;instructions for running the examples can be found here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 21:01:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363620#M20660</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-05T21:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect without "Enter this code into" -&gt; redirect not working (JAVA SDK)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363625#M20661</link>
      <description>&lt;P&gt;Not sure how this will be implemented.&lt;/P&gt;&lt;P&gt;I have a simple HTML Button "Authenticate Dropbox".&lt;/P&gt;&lt;P&gt;This Button will be redirect to Dropbox, User will accept, and afterwards I got token and user will be redirect to my page...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 21:08:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363625#M20661</guid>
      <dc:creator>vished</dc:creator>
      <dc:date>2019-09-05T21:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect without "Enter this code into" -&gt; redirect not working (JAVA SDK)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363627#M20662</link>
      <description>&lt;P&gt;Yes, that's correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;recommend reading &lt;A href="https://www.dropbox.com/developers/reference/oauth-guide" target="_self"&gt;the OAuth Guide&lt;/A&gt; for a high-level reference of how this works.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/web-file-browser" target="_self"&gt;The&amp;nbsp;web-file-browser example app&lt;/A&gt; can show it working in an actual app you can run locally.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 21:11:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-without-quot-Enter-this-code-into-quot-gt-redirect-not/m-p/363627#M20662</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-05T21:11:15Z</dc:date>
    </item>
  </channel>
</rss>

