<?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: API v2 access token validity and authorization redirect URL response in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216503#M11225</link>
    <description>&lt;P&gt;Hi. Thank for you answer. I use the system browser and redirect back to localhost inside my app.&lt;/P&gt;
&lt;P&gt;Now I just return a HTML page with a message saying the user was authorized and they can return to the app.&lt;/P&gt;
&lt;P&gt;Plus a link to close the browser window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Later i'll probably switch to an embedded browser and the webpage will close itself &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;&lt;/P&gt;
&lt;P&gt;Actually everything is working just fine, but I get a 400 error when trying to get a token from the code I get from the auth flow so I'm kinda stuck there.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2017 17:53:08 GMT</pubDate>
    <dc:creator>jenseno</dc:creator>
    <dc:date>2017-04-17T17:53:08Z</dc:date>
    <item>
      <title>API v2 access token validity and authorization redirect URL response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216287#M11197</link>
      <description>&lt;P&gt;Is it correctly understood that the token I get from a user after the authorization flow, is valid until the user revokes it? &amp;nbsp;Meaning I can just store it securely in the app and use it each time it's needed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question. If I can not close the browser that presented the dropbox authentication dialog (on calling redirect_uri, is there anything I can return that will says success or possible close the browser window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Odin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216287#M11197</guid>
      <dc:creator>jenseno</dc:creator>
      <dc:date>2019-05-29T09:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 access token validity and authorization redirect URL response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216499#M11223</link>
      <description>That's correct, a Dropbox API access token doesn't expire by itself, but it can be revoked at any time, by either the user or app. That being the case, your app should store and re-use the access token for a user.&lt;BR /&gt;&lt;BR /&gt;What you can do with the final state of the browser in the app authorization flow depends on exactly how you have it implemented. Can you elaborate on how your setup currently works? Specifically, are you using an embedded browser or the external system browser, which OAuth 2 flow are you using, and what, if any, redirect URI are you using?</description>
      <pubDate>Mon, 17 Apr 2017 17:46:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216499#M11223</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-17T17:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 access token validity and authorization redirect URL response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216503#M11225</link>
      <description>&lt;P&gt;Hi. Thank for you answer. I use the system browser and redirect back to localhost inside my app.&lt;/P&gt;
&lt;P&gt;Now I just return a HTML page with a message saying the user was authorized and they can return to the app.&lt;/P&gt;
&lt;P&gt;Plus a link to close the browser window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Later i'll probably switch to an embedded browser and the webpage will close itself &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;&lt;/P&gt;
&lt;P&gt;Actually everything is working just fine, but I get a 400 error when trying to get a token from the code I get from the auth flow so I'm kinda stuck there.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:53:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216503#M11225</guid>
      <dc:creator>jenseno</dc:creator>
      <dc:date>2017-04-17T17:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 access token validity and authorization redirect URL response</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216504#M11226</link>
      <description>Thanks for following up. In that case, returning an HTML success page like that is the best solution.&lt;BR /&gt;&lt;BR /&gt;Note that we don't recommend using an embedded web view, as the Google Sign In flow won't work with that in the future:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html" target="_blank"&gt;https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html&lt;/A&gt;</description>
      <pubDate>Mon, 17 Apr 2017 17:54:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-access-token-validity-and-authorization-redirect-URL/m-p/216504#M11226</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-17T17:54:41Z</dc:date>
    </item>
  </channel>
</rss>

