Ah, might have forgotten to make it privileged, will have to check on that and come back.
Shouldn't it throw an error if they privileges are incorrect? AJ ONeal On Sun, Mar 22, 2015 at 7:24 PM, Andrew Sutherland < [email protected]> wrote: > > On 03/22/2015 08:54 PM, AJ ONeal (Home) wrote: > >> I'm building an OAuth2 browser auth dialog in FxOS 2.0.0 and following >> the instructions here: >> >> https://developer.mozilla.org/en-US/Apps/Build/Manifest#redirects >> > > According to the implementation at https://dxr.mozilla.org/ > mozilla-central/source/dom/apps/Webapps.jsm#435 your app needs to be > privileged or certified for the redirect mechanism to be honored. This > might be the problem. > > If not, the email app used redirects without the "browser" privilege when > it first added gmail oauth2 support. The pull request for that is at > https://github.com/mozilla-b2g/gaia/pull/23800. We subsequently changed > to use "browser" like the calendar app so we could clear the cookies (see > https://bugzilla.mozilla.org/show_bug.cgi?id=1069412#c4) for privacy > reasons. That bug also includes some other important changes, so don't > rely on that one pull request for anything more than to look at something > that worked for redirect purposes :) > > The contacts app (under apps/communications) also does oauth2. > > Andrew >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
