https://github.com/mozilla/openwebapps/blob/develop/docs/ACTIVITIES.md
Our goal is to support multiple-credentials-per-intent-provider with enough UI to let the user pick a useful one. The specific use case we were thinking of there was, "share as this twitter ID" or "send with this Gmail account".
Your feedback would be very welcome.
Best,
Mike
--
Michael Hanson, Mozilla Labs
mha...@mozilla.com
I believe nesting of intents will be very useful beyond just the login
case, but login seems like a good example to drive the discussion.
--Tyler
I mean an intent handler that is in the middle of handling an intent
(hasn't called intent.postResult() yet) can launch a new intent and
get a response. Since Chrome Web Intents uses a special browsing
context to display the intent handler, it is not possible for the
intent handler to launch a new intent: the special browsing context is
already occupied.
--Tyler
On Wed, Sep 14, 2011 at 11:42 PM, Paul Kinlan <paulk...@google.com> wrote:I mean an intent handler that is in the middle of handling an intent
> Hi Tyler,
> What do you mean nest?
(hasn't called intent.postResult() yet) can launch a new intent and
get a response. Since Chrome Web Intents uses a special browsing
context to display the intent handler, it is not possible for the
intent handler to launch a new intent: the special browsing context is
already occupied.
Hm, the goal was to make it work with your current auth scheme - but to give you a way to handle multiple accounts. Perhaps our intent (hah!) was not clear.
The basic idea was that we create your iframe and fire the request at you - and that you do whatever it is you do to check the session, and if that doesn't work, you fire back a "auth required" message at us, and we do a popup window pointing at your "login" intent path. You could potentially do redirects, federation, whatever inside that window, so long as, at the end of it, you call a method that says, "okay, login's done, remember this blob for me so I can keep track of it".
That blob is just so we can pop a picker that can say, "Share Service X -- JaneWork", "Share Service X -- JaneHome". But in the simple, session-cookie based case, you don't need to do any of that. In the simple case, it would let us display a username on the intent picker, which would be pretty nice.
(catching up with the rest of the thread here - I'll try to weigh in at the tail)
mh