<?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 Login to Dropbox from browser extension on Firefox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620253#M28573</link>
    <description>&lt;P&gt;Turns out the browser extensions on Firefox don't have permanent URLs [1]. This means that there is no single URL to whitelist on the developer page for the app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to make OAuth work with browser extensions on Firefox?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] Mentioned on a forum here, for example: &lt;A href="https://discourse.mozilla.org/t/uuid-different-in-someone-elses-machine/36988" target="_blank"&gt;https://discourse.mozilla.org/t/uuid-different-in-someone-elses-machine/36988&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Sep 2022 05:14:14 GMT</pubDate>
    <dc:creator>dbox-arg0</dc:creator>
    <dc:date>2022-09-04T05:14:14Z</dc:date>
    <item>
      <title>Login to Dropbox from browser extension on Firefox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620253#M28573</link>
      <description>&lt;P&gt;Turns out the browser extensions on Firefox don't have permanent URLs [1]. This means that there is no single URL to whitelist on the developer page for the app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to make OAuth work with browser extensions on Firefox?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] Mentioned on a forum here, for example: &lt;A href="https://discourse.mozilla.org/t/uuid-different-in-someone-elses-machine/36988" target="_blank"&gt;https://discourse.mozilla.org/t/uuid-different-in-someone-elses-machine/36988&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 05:14:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620253#M28573</guid>
      <dc:creator>dbox-arg0</dc:creator>
      <dc:date>2022-09-04T05:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Login to Dropbox from browser extension on Firefox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620314#M28577</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/764286"&gt;@dbox-arg0&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you check the &lt;A title="Starting with Firefox 86, the special loopback address described above can be used too" href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/identity#sect1" target="_blank" rel="noopener"&gt;loopback variant&lt;/A&gt;? Does it work or not? 🧐&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 15:59:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620314#M28577</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-04T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Login to Dropbox from browser extension on Firefox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620629#M28607</link>
      <description>&lt;P&gt;Thanks for the quick response. It seems that &lt;EM&gt;browser.identity.getRedirectURL()&lt;/EM&gt; is on the right path.&lt;/P&gt;&lt;P&gt;I've experimented by adding and removing my extension from the browser a few times, the URL changes but the result of &lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;browser&lt;/SPAN&gt;.&lt;SPAN class=""&gt;identity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;getRedirectURL&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt; is stable.&lt;/P&gt;&lt;P&gt;Now, this &lt;STRONG&gt;is good but&lt;/STRONG&gt;... I'm afraid there is more to make it work and I hit a wall once more. It seems that I have to use &lt;EM&gt;identity.launchWebAuthFlow()&lt;/EM&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Previously I used a receiver path something like: &lt;EM&gt;moz-extension://7c66eee6-25&amp;lt;long-number&amp;gt;/qfeeds/oauth_receiver_dbox.html&lt;/EM&gt;, only that the URL would always change, &lt;EM&gt;getRedirectURL()&lt;/EM&gt; is now giving me a fixed URL. So I guess this is my new receiver URL: &lt;A target="_blank" rel="noopener"&gt;https://4ff3&amp;lt;long-number&amp;gt;.extensions.allizom.org/qfeeds/oauth_receiver_dbox.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;The problem is that this is not a live URL, as discussed here: &lt;A href="https://discourse.mozilla.org/t/oauth2-redirect-to-https-extensions-allizom-org-seems-to-fail/35994/4" target="_blank" rel="noopener"&gt;https://discourse.mozilla.org/t/oauth2-redirect-to-https-extensions-allizom-org-seems-to-fail/35994/4&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;I was doing the Dropbox connection via call to &lt;EM&gt;chrome.tabs.create({ url: authUrl})&lt;/EM&gt;, is this intended to be substituted by &lt;EM&gt;launchWebAuthFlow()&lt;/EM&gt;?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;&lt;P&gt;Благодаря&lt;BR /&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 03:27:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620629#M28607</guid>
      <dc:creator>dbox-arg0</dc:creator>
      <dc:date>2022-09-06T03:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Login to Dropbox from browser extension on Firefox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620711#M28615</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/764286"&gt;@dbox-arg0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I was doing the Dropbox connection via call to &lt;EM&gt;chrome.tabs.create({ url: authUrl})&lt;/EM&gt;, is this intended to be substituted by &lt;EM&gt;launchWebAuthFlow()&lt;/EM&gt;?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A title="Getting the redirect URL note" href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/identity#sect1" target="_blank" rel="noopener"&gt;The documentation&lt;/A&gt;:&lt;BR /&gt;&lt;P&gt;You'll use the redirect URL in two places:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;supply it when registering your extension as an OAuth2 client.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;pass it into identity.launchWebAuthFlow()&lt;/U&gt;, as a URL parameter added to that function's url argument.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So, yes - you have to pass to &lt;A title="identity.launchWebAuthFlow" href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/identity/launchWebAuthFlow" target="_blank" rel="noopener"&gt;the function&lt;/A&gt; it as noted in documentation and the browser will take care for the rest, up to receiving redirecting URL back (at that point filled with appropriate parameters - authorization code or access token, refresh token, etc). Actual parameter interpretation have to be performed by your code (usually Dropbox SDK).&lt;/P&gt;&lt;P&gt;By the way, "live URL" is definitely not the most secure way! That's why usually it's replaced by platform specific addresses (on Android for instance). Seems Firefox developers are doing something similar. If I have to bet this will continue (doesn't seem complete yet). Such movements are supported by most service providers (including Dropbox).&lt;/P&gt;&lt;P&gt;Надявам се, че това помага. &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;</description>
      <pubDate>Tue, 06 Sep 2022 12:11:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620711#M28615</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-06T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Login to Dropbox from browser extension on Firefox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620748#M28626</link>
      <description>&lt;P&gt;I can't offer help on the Firefox side of things, but in case you can't use a redirect URI, it is worth noting that a redirect URI is actually optional on the Dropbox OAuth app authorization flow. That is, the use of a &lt;CODE&gt;redirect_uri&lt;/CODE&gt; on &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" rel="noopener noreferrer" target="_blank"&gt;/oauth2/authorize&lt;/A&gt; is not actually required; it's optional when using the code flow. If it is not supplied, the user is presented with the authorization code directly on the Dropbox web site after authorizing the app, which they would need to manually copy/paste into the third party app to complete the flow. While the user experience is certainly not as good, that may be an alternative if needed.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:02:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Login-to-Dropbox-from-browser-extension-on-Firefox/m-p/620748#M28626</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-06T14:02:57Z</dc:date>
    </item>
  </channel>
</rss>

