<?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 refresh token without User interaction in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603136#M2704</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;...&lt;/P&gt;&lt;P&gt;1&amp;nbsp; Is there any other solution where Auth code can be taken Internally by Application ?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you already guessed, Yes, using redirect URI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2. In which Parameter Auth Code can be taken in response of redirect-uri ?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can take a look on &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/web-file-browser/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java" target="_blank" rel="noopener"&gt;a web example&lt;/A&gt; to take idea from or on general &lt;A title="Dropbox for HTTP Developers" href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener"&gt;authorization doc&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 13:37:04 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-06-14T13:37:04Z</dc:date>
    <item>
      <title>How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/602188#M2684</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;As Drop Box Access Token is invalid after 4 hr. I want to implement refresh token mechanism at Backend Java code without User Interaction i.e fully automated. so I have a requirement to get refresh token without User Interaction based on two parameter on UI&lt;/P&gt;
&lt;P&gt;1 . App Key&lt;/P&gt;
&lt;P&gt;2. Access Token Generated&lt;/P&gt;
&lt;P&gt;Please share any link or documentation for same any Java code written ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 14:03:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/602188#M2684</guid>
      <dc:creator>makrand kulkarni</dc:creator>
      <dc:date>2022-06-10T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/602254#M2687</link>
      <description>&lt;P&gt;It is not possible to get a refresh using an app key and access token programmatically. You can only get a refresh token using &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener"&gt;the OAuth app authorization&lt;/A&gt; flow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise, it is not possible to fully automate the OAuth process where the user chooses to authorize the app and the app then receives the resulting access token and optional refresh token. This needs to be done manually by the user at least once. If your app needs to maintain long-term access without the user manually re-authorizing it repeatedly, the app should request "offline" access so that it gets a refresh token. The refresh token doesn't expire and can be stored and used repeatedly to get new short-lived access tokens whenever needed, without the user manually reauthorizing the app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize" target="_blank" rel="nofollow noopener noreferrer"&gt;examples of this functionality in the Dropbox API v2 Java SDK here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 16:07:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/602254#M2687</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-09T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/602256#M2689</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt; You are in&amp;nbsp; confusion. There is no way to get refresh token based on access token; the sequence is opposite! You have to get a refresh token and after that you SDK will take care for the rest (including access token generation. Take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/td-p/592667" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Tokens-only-valid-for-4-hours-from-app-console/td-p/425269" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 15:46:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/602256#M2689</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-09T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603126#M2703</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I have one more query,&amp;nbsp; As Per Example Given, Auth Code needs to be Enter manually by User to get Access and Refresh Token,&amp;nbsp;&lt;/P&gt;&lt;P&gt;For A Company Clients this could not be Implemented as there are multiple users which will use our application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; Is there any other solution where Auth code can be taken Internally by Application ?&lt;/P&gt;&lt;P&gt;2. In which Parameter Auth Code can be taken in response of redirect-uri ?&lt;/P&gt;&lt;P&gt;It will be great help on this .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:58:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603126#M2703</guid>
      <dc:creator>makrand kulkarni</dc:creator>
      <dc:date>2022-06-14T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603136#M2704</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;...&lt;/P&gt;&lt;P&gt;1&amp;nbsp; Is there any other solution where Auth code can be taken Internally by Application ?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you already guessed, Yes, using redirect URI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2. In which Parameter Auth Code can be taken in response of redirect-uri ?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can take a look on &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/web-file-browser/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java" target="_blank" rel="noopener"&gt;a web example&lt;/A&gt; to take idea from or on general &lt;A title="Dropbox for HTTP Developers" href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener"&gt;authorization doc&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:37:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603136#M2704</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-14T13:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603152#M2705</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt; Здравко is correct. While the authorization process needs to be processed manually once per user, you can use a redirect URI to make that process easier. Please refer to the resources that Здравко linked to.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:08:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603152#M2705</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-14T14:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603552#M2708</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have question that , In what Param Auth Code will get in Response of redirect URI ?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 01:59:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603552#M2708</guid>
      <dc:creator>makrand kulkarni</dc:creator>
      <dc:date>2022-06-16T01:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603569#M2709</link>
      <description>&lt;P&gt;While using SDK, the care for details is usually SDKs code's task, not to the code where SDK features are called from. Though, for all possible parameters in redirect URI you can take a look on &lt;A title="Starts the OAuth 2.0 authorization flow" href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_blank" rel="noopener"&gt;/oauth2/authorize&lt;/A&gt;, in RETURNS section.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:33:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603569#M2709</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-16T06:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603571#M2710</link>
      <description>&lt;P&gt;Thanks, I am using&amp;nbsp; Authorize URI with Token Access type as Offline&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=qeckvp2nq9ihk36&amp;amp;token_access_type=offline&amp;amp;response_type=code" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=xxxxxx&amp;amp;token_access_type=offline&amp;amp;response_type=code&lt;/A&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I want to read Auth Code Internally in Java Code return by above URI. suggest a way how to read the Auth Code by Java code only&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 07:01:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603571#M2710</guid>
      <dc:creator>makrand kulkarni</dc:creator>
      <dc:date>2022-06-16T07:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603581#M2711</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As result of your request, on confirmation, new request will be directed according to then redirect URI with only parameter 'code' inside. It would look like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Your redirect URI&amp;gt;?code=&amp;lt;code to be used in /oauth2/token&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;You can use any code able to handle your URI (either provided by Dropbox or no). Some sort of service need to be provided that serve as a callback (no direct response is possible). Typically it's a some sort of web server (local HTTP handler) or something else, depending on the URI type (is it URL or something else). You can take a look here for some &lt;A title="Authentication finalization" href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/web-file-browser/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java#L59" target="_blank" rel="noopener"&gt;web example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 07:47:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603581#M2711</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-16T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603676#M2712</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;&amp;nbsp;Здравко is correct. Please refer to the documentation they linked to for information on how this is passed on the redirect, and the example they linked to for a sample of how to handle this with the Java SDK.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:32:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/603676#M2712</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-16T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/604654#M2724</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share more example in Spring boot for implementation of refresh token. Previous example shared by&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp; was partially help full .&lt;/P&gt;&lt;P&gt;I am trying to figure out more that&amp;nbsp; "is 1 drop box&amp;nbsp; application be used across org ? "&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 10:27:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/604654#M2724</guid>
      <dc:creator>makrand kulkarni</dc:creator>
      <dc:date>2022-06-21T10:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/604748#M2725</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt; Dropbox doesn't offer a Spring Boot sample in particular, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 17:45:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/604748#M2725</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-21T17:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/605096#M2729</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following Drop box documentation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to get the "Code"&amp;nbsp; embedded in Redirect URI. Sample request is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET Method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=xxxxxx&amp;amp;token_access_type=offline&amp;amp;response_type=code&amp;amp;redirct_uri=https://eofynre1btpc2ny.m.pipedream.net&amp;amp;state=xyz" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=xxxxxx&amp;amp;token_access_type=offline&amp;amp;response_type=code&amp;amp;redirct_uri=https://eofynre1btpc2ny.m.pipedream.net&amp;amp;state=xyz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In response getting Html Code /Website in Postman&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As Per Documentation it should provide me&amp;nbsp; Query response with Code&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-inline" image-alt="makrandkulkarni_0-1655966136680.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/29963iD19E24E3367E2349/image-size/medium?v=v2&amp;amp;px=400" role="button" title="makrandkulkarni_0-1655966136680.png" alt="makrandkulkarni_0-1655966136680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 06:38:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/605096#M2729</guid>
      <dc:creator>makrand kulkarni</dc:creator>
      <dc:date>2022-06-23T06:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/605103#M2730</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As can be seen on documentation (and on your screenshot) "Because /oauth2/authorize is a &lt;STRONG&gt;web site&lt;/STRONG&gt;, there is no direct return value". What is a web site? 🧐 Ooo... it's HTML. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Read more carefully.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:57:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/605103#M2730</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-06-23T07:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/605196#M2733</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1547963"&gt;@makrand kulkarni&lt;/a&gt; As Здравко indicated, &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_blank"&gt;/oauth2/authorize is a web page&lt;/A&gt;, not an API call, so you should not be accessing it programmatically. You should send the user there in their own system web browser to interactively click the button to authorize your app to access their account. If you specify a redirect URI, the user will be redirected to it upon authorizing the app and the app can parse that resulting redirected URI to retrieve the authorization code.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 15:07:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/605196#M2733</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-06-23T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/743367#M3845</link>
      <description>&lt;P&gt;Hi Greg.&lt;BR /&gt;&lt;BR /&gt;Somewhat this is still confusing for me.&lt;BR /&gt;&lt;BR /&gt;I was following this example:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L81" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L81&lt;/A&gt;&lt;BR /&gt;and this guide:&lt;BR /&gt;&lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener"&gt;https://developers.dropbox.com/oauth-guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;From your comment:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;If your app needs to maintain long-term access without the user manually re-authorizing it repeatedly, the app should request "offline" access so that it gets a refresh token. The refresh token doesn't expire and can be stored and used repeatedly to get new short-lived access tokens whenever needed, without the user manually reauthorizing the app.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and from the DropBox Oauth Guide:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;When using refresh tokens, your call to the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank" rel="noopener"&gt;/oauth2/token&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;endpoint with the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;grant_type&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;authorization_code&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;will return a short-lived access token and a refresh token, which should be securely stored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;so why does this endpoint return a new refresh token?&lt;BR /&gt;&lt;BR /&gt;but as I understand - your comment is more correct - the Refresh Token is permanent and if I perform a "manual flow" like here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L18" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L18&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and save the refresh token, I should be able to use it forever?&lt;BR /&gt;&lt;BR /&gt;let's say I perform the above manual and initial OAuth flow (DropboxOAuth2FlowNoRedirect - in Python SDK), and save the refresh token and access token somewhere.&lt;BR /&gt;&lt;BR /&gt;then, let's say I have a task - a script that re-runs periodically and needs to call DropBox API without user interaction - I make it read the previously saved Access and Request tokens, and make a call like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L79C1-L83C52" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L79C1-L83C52&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;does this mean, that after the above Dropbox client operation, I don't get a new Access Token, but the one which I saved just becomes valid again?&lt;BR /&gt;&lt;BR /&gt;both the AccessToken and Refresh Token stay valid and the same all the time?&lt;BR /&gt;&lt;BR /&gt;AccessToken can even become expired for a long time, and you only need Refresh Token to make a new Dropbox API connection at any time?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 00:46:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/743367#M3845</guid>
      <dc:creator>tkozuch</dc:creator>
      <dc:date>2024-01-15T00:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get refresh token without User interaction</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/743371#M3846</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794146"&gt;@tkozuch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As seems you haven't read entire documentation. &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank" rel="noopener noreferrer"&gt;/oauth2/token&lt;/A&gt; endpoint can be used for different things including initial token receiving from access code (note here code, no token) where you get refresh token and access token on one side and consecutive usage to get access token from refresh token (something the can be used repeatedly; the first case cannot - the code is for single time usage). For some more details in deep take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. That's for clarity only - when using SDK you don't need to call endpoints directly. So:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794146"&gt;@tkozuch&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;so why does this endpoint return a new refresh token?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When you start OAuth flow from "zero" (i.e. new code) you get new refresh token. You don't need to repeat it! You only need to do it once on linking time and after that proceed without further user interaction - then only new access token comes back. Actually the SDK takes care for this, you can ignore this part completely in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794146"&gt;@tkozuch&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;and save the refresh token, I should be able to use it forever?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, or till revoke either from your application or from user side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794146"&gt;@tkozuch&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;both the AccessToken and Refresh Token stay valid and the same all the time?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Refresh token stay valid indefinitely while access token expire in time noted on receiving (typical 4 hours or so).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1794146"&gt;@tkozuch&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;AccessToken can even become expired for a long time, and you only need Refresh Token to make a new Dropbox API connection at any time?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Almost... Once the existing access token expires, you need new access token for regular API work - that's what the refresh process is for. As I mentioned SDK takes care for this internal. To "refresh" the token you need application key at least and in some cases application secret (when non PKCE OAuth flow is used).&lt;/P&gt;&lt;P&gt;Hope this sheds additional light.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 01:29:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-get-refresh-token-without-User-interaction/m-p/743371#M3846</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-01-15T01:29:27Z</dc:date>
    </item>
  </channel>
</rss>

