Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Redirect based login flow

17 views
Skip to first unread message

Forbes Lindesay

unread,
May 15, 2013, 12:54:39 PM5/15/13
to
Sometimes it doesn't make sense to open a new window. e.g. when doing login within an app or when on a mobile device or tablet where a new window actually just means a new tab.

Is it possible to disable the creation of a new window and just redirect to Browser ID instead?

Sean McArthur

unread,
May 15, 2013, 1:54:50 PM5/15/13
to Forbes Lindesay, dev-id...@lists.mozilla.org
There's an issue for exactly this, and I'm working on it this week:
https://github.com/mozilla/browserid/issues/2034

In short, it will use a redirect flow in browser environments that don't
support popups completely (Windows Phone, Chrome for iOS, Chrome Frame?,
etc). This won't be an option to chose, it will be based on the browser
support. This also doesn't quite yet solve the case from native apps, but
there's the internal API for that.

Forbes Lindesay

unread,
May 15, 2013, 10:31:26 PM5/15/13
to
That's excellent. Will that flow be used in things like Safari for iOS (that seem to support the full popup window API but actually use tabs instead).

It will be a big help for native apps providing they still have an attached web server and the in app browser doesn't appear to support popup windows.

Sean McArthur

unread,
May 16, 2013, 6:47:03 PM5/16/13
to Forbes Lindesay, dev-id...@lists.mozilla.org
Safari for iOS will use the the current popup flow. It already works
correctly, and even though the popup opens a new tab, it's still better
than a redirect flow. The downside to redirecting, is that it completely
loses the state of the website before they left.

I'd love to make it easier for native apps, but the redirect flow only
works in browsers, because we need access to an iframe to store the
parameters in localStorage first.

Native apps can use the internal API, just like Firefox OS, for now.
> _______________________________________________
> dev-identity mailing list
> dev-id...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-identity
>
0 new messages