Correct, outside of packaged-app-on-FxOS 2.x we're using the web flow, opening a new window for the OAuth interaction, and closing it after login is done. We only get trusted UI as a packaged app on 2.x.
----- Original Message ----- From: "Shane Tomlinson" <[email protected]> To: "Allen Short" <[email protected]> Cc: "Andy McKay" <[email protected]>, "Wil Clouser" <[email protected]>, [email protected] Sent: Tuesday, July 15, 2014 5:54:02 AM Subject: Re: FxOS 1.3 integration of FxA On 14/07/2014 21:43, Allen Short wrote: > Hi Shane, > > I've been doing much of the FxA integration for Marketplace. I have > OAuth-based FxA login working and will be landing support for FxOS 2.0's > login flow soon. It's currently turned on for > https://marketplace-altdev.allizom.org/ . The wiki page for current work is > https://wiki.mozilla.org/Marketplace/FirefoxAccounts > > So for FxOS 1.4 and earlier, I believe we have the crucial bits working via > OAuth, just opening a popup window. (This is also what's currently being used > on Android and desktop, though there's talk of changing it on desktop for UX > reasons.) For FxOS 2.0 and later, we're going to use the navigator.mozId API. > Thank you very much Allen! This all sounds reasonable, and more sane than I originally imagined. I have a couple of FxOS specific questions after reading the wiki [1]. IIUC, for FxOS < 2.0, FxA will be opened using a web flow, in a tab in the browser like any other web page? Or do I have it all wrong and FxA is opened in the trusted UI? If opened in the browser, how will Marketplace, an installed app, communicate with FxA, in the browser? The second is UX related - how will the user get back to Marketplace once they are signed in with FxA? Thanks, Shane ================ [1] - https://wiki.mozilla.org/Marketplace/FirefoxAccounts _______________________________________________ Dev-fxacct mailing list [email protected] https://mail.mozilla.org/listinfo/dev-fxacct

